Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using OLEDB to connect 1

Status
Not open for further replies.

welshone

Programmer
Jul 30, 2001
414
GB
hello,

I currently use ADODB to connect to my database,
just reading an article, says the fast conneciton is OLEDB.

how can I use this ?

conn = "Provider=SQLOLEDB;Server=DEW;Database=hold;uid=hold;pwd=hold";

do Ineed to Set a server.createobject to anything ?
I have tried just adding the above line and it doesn't work.

thank you.
 
application("ConnStr") = "Provider=SQLOLEDB.1;User Id=myID;Password=myPass;Data Source=myServer;Initial Catalog=myDB"

Set objConn = Server.CreateObject("ADODB.Connection" )
objConn.Open Application("connStr")
 
thank you, that is much faster actually.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top