Hi, i am having a problem with connecting ASP with MSSQL SEVER 2005 EXPRESS EDITION, i am writing ASP code using javascript.
look at this peace of code:
var myConnect = "Provider=SQLNC LI;Data Source=.\SQLEXP RESS;Initial Catalog=quiz;Us er ID=factory1;Pas sword = 123;";
var ConnectObj = Server.CreateOb ject("ADODB.Con nection");
var RS = Server.CreateOb ject("ADODB.Rec ordset");
var sql="select * from [Quiz.mdf].dbo.Question";
ConnectObj.Open (myConnect);
RS.Open(sql,Con nectObj,adOpenF orwardOnly,adLo ckReadOnly,adCm dText);
The IIS throws an error says:
"Microsoft SQL Native Client (0x80004005)
Named Pipes Provider: Could not open a connection to SQL Server [53]. "
at "ConnectObj.Ope n(myConnect);"
Any body can give me a help?
look at this peace of code:
var myConnect = "Provider=SQLNC LI;Data Source=.\SQLEXP RESS;Initial Catalog=quiz;Us er ID=factory1;Pas sword = 123;";
var ConnectObj = Server.CreateOb ject("ADODB.Con nection");
var RS = Server.CreateOb ject("ADODB.Rec ordset");
var sql="select * from [Quiz.mdf].dbo.Question";
ConnectObj.Open (myConnect);
RS.Open(sql,Con nectObj,adOpenF orwardOnly,adLo ckReadOnly,adCm dText);
The IIS throws an error says:
"Microsoft SQL Native Client (0x80004005)
Named Pipes Provider: Could not open a connection to SQL Server [53]. "
at "ConnectObj.Ope n(myConnect);"
Any body can give me a help?
Comment