Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.odbcnet
How to create a new ODBC drive in run time(c#)???
yaniv
10/21/2002 9:58:00 AM
HI
I need to define a new ODBC Text Drive, but I need to to
that on the code.
How can i do this?
Thanks in advance
1 Answer
(Hussein Abuthuraya(MSFT))
10/23/2002 1:24:00 AM
0
I'm not sure if I understand your question correctly, but I guess your question is how to setup a DSN-less connection is code using the Text ODBC driver. If this is correct then
here is an example:
cnOdbc = New OdbcConnection("Driver={Microsoft Text Driver (*.txt; *.csv)};dbq=D:\AccessDB\")
Thanks,
Hussein Abuthuraya
Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.
Are you secure? For information about the Microsoft Strategic Technology Protection Program and to order your FREE Security Tool Kit, please visit
http://www.microsoft.co...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
How to create a new ODBC drive in run time(c#)???
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password