L
Luis
I'm using a connection string in my asp pages similar to:
cst = "Provider=SQLOLEDB;Server=MyServerName;Database=MyDbName;"
cst = cst & "Network Library=DBMSSOCN;User ID=MyUserid;Password=MyPass"
set conn = Server.CreateObject("ADODB.Connection")
conn.open cst
Do I need to declare the cst and conn variables?
ie:
dim cst
cst = "Provider=SQLOLEDB;Server=MyServerName;Database=MyDbName;"
cst = cst & "Network Library=DBMSSOCN;User ID=MyUserid;Password=MyPass"
dim conn
set conn = Server.CreateObject("ADODB.Connection")
conn.open cst
Thanks
cst = "Provider=SQLOLEDB;Server=MyServerName;Database=MyDbName;"
cst = cst & "Network Library=DBMSSOCN;User ID=MyUserid;Password=MyPass"
set conn = Server.CreateObject("ADODB.Connection")
conn.open cst
Do I need to declare the cst and conn variables?
ie:
dim cst
cst = "Provider=SQLOLEDB;Server=MyServerName;Database=MyDbName;"
cst = cst & "Network Library=DBMSSOCN;User ID=MyUserid;Password=MyPass"
dim conn
set conn = Server.CreateObject("ADODB.Connection")
conn.open cst
Thanks