Hello Everyone,
I am using Javascript in ASP page to connect to the database. I am not able to figure out where is the problem.
Gettting this error->
My code is->
If someone could please guide me in the right direction I would greatly apprieciate it.
Thanking You.
I am using Javascript in ASP page to connect to the database. I am not able to figure out where is the problem.
Gettting this error->
Error Type:
Microsoft OLE DB Provider for SQL Server (0x80004005)
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
/MyWeb/test.asp, line 9
Microsoft OLE DB Provider for SQL Server (0x80004005)
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
/MyWeb/test.asp, line 9
Code:
<%@ Language = JavaScript %> <% var myconnection var myrecordset var connectionString myconnection = Server.CreateObject("adodb.connection") connectionString = "Provider=SQLOLEDB.1;Password=myPwd;Persist Security Info=True;User ID=myId;Initial Catalog=MyTable;Data Source=MyCompName\MyDBINSTANCE" myconnection.Open(connectionString, myconnection); %>
Thanking You.