Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Plotin
Starting Member
21 Posts |
Posted - 2005-12-06 : 09:32:36
|
HiThe following JScript code returns [DBNETLIB][ConnectionOpen (Connect().)SQL Server does not exist or access denied error. function GETRECORDS(){ var adoCon; adoCon = new ActiveXObject("ADODB.Connection.2.8"); adoRst = new ActiveXObject("ADODB.Recordset.2.8") adoCon.Provider = "SQLOLEDB"; adoCon.CursorLocation = 3; adoCon.IsolationLevel = 256; adoCon.Mode = 2; adoCon.ConnectionString = "Data Source = GFSSVR1015\Mike_Test;Initial Catalog = WorkDummy;Integrated Security = SSPI" adoCon.Open; adoRst.Open("Select * From OfferCondition,adoCon,3,1); window.alert(adoRst.RecordCount); adoRst.Close; adoCon.Close; }Enabled SQL Server Network Protocols are Named Pipes and TCP/IP.Named Pipes property isDefault Pipe: \\.\pipe\MSSQL$MIKE_TEST\sql\queryand TCP/IP property isDefault Port:1433Any assistance is highly appreciated.ThanksPlotin |
|
|
my_aro
Yak Posting Veteran
50 Posts |
Posted - 2005-12-06 : 23:48:25
|
| try to look closely at your connection type, at the sql server name and the port including the password maybe you just missed out something.. it could be so impossible for your machine not to locate your sql server if its installed properly |
 |
|
|
|
|
|