07-13-2009, 10:00 AM
Hi
Try this
Initial Catalog is the database that u want to use..
Try this
Initial Catalog is the database that u want to use..
Code:
sConstr="Provider=sqloledb;Data Source=192.168.1.2;Initial Catalog=DBtest;User ID=sa;Password=******;"
Set Db_Connection = CreateObject("ADODB.Connection")
Db_Connection.open sConstr
Db_Connection.Execute "select * from dummies"