Hello,
My workplace has a site on one server with an SQL database. They have another site on a different server, which they now want to have content generated from the 1st site's database.
Pages hosted on the first site's hosting account were connecting to the database through this:
set db=Createobject("Adodb.Connection")
set rs=CreateObject("Adodb.Recordset")
db.ConnectionString="PROVIDER=SQLOLEDB.1;Uid=userID;pwd=Password;Initial Catalog=databaseName;Data Source=serverAddress"
db.open
I tried to put that on the new site in hopes that it would be able to connect to the database on the other server, but I'm getting "SQL Server does not exist or access denied" messages.
Anyone have any idea what I can do? Thanks for any help.
My workplace has a site on one server with an SQL database. They have another site on a different server, which they now want to have content generated from the 1st site's database.
Pages hosted on the first site's hosting account were connecting to the database through this:
set db=Createobject("Adodb.Connection")
set rs=CreateObject("Adodb.Recordset")
db.ConnectionString="PROVIDER=SQLOLEDB.1;Uid=userID;pwd=Password;Initial Catalog=databaseName;Data Source=serverAddress"
db.open
I tried to put that on the new site in hopes that it would be able to connect to the database on the other server, but I'm getting "SQL Server does not exist or access denied" messages.
Anyone have any idea what I can do? Thanks for any help.