|
-
February 21st, 2000, 03:41 AM
#1
DSN less connection
Hi all
Is to possible to have a connection without specifying the DSN(ODBC).
-
February 21st, 2000, 04:12 AM
#2
Re: DSN less connection
Yes use OLEDB
dim cnn as ADODB.connection
set cnn=new ADODB.connection
with cnn
.provider="SQLOLEDB"
.CursorLocation = adUseServer
.ConnectionTimeout = 0
.ConnectionString="SERVER=whatever;uid=whatever;pwd=whatever" & _
";INITIAL CATALOG=whateverdatabase"
.open
end with
SERVER is the server that your database is on
INITIAL CATALOG is the database you want to connect to
This is what I use for SQL SERVER the only thing that I don't like is that I now have to use ini files to change servers and databases
-
February 21st, 2000, 04:31 AM
#3
Re: DSN less connection
I am using Paradox3.0 database. Where can I get OLEDB provider for Paradox.
Thanks
Venky
-
February 21st, 2000, 06:53 AM
#4
Re: DSN less connection
I'm sorry but I haven't a clue
Try wherever you got your ODBC drivers from or search the net.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|