954,190 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Connecting to SQL server in Local machine

Dear All
how can i connect my ASP page to SQL server database in a local machin
i get this error
Running connectivity tests...

Attempting connection
[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.

TESTS FAILED!

alirezaaali
Newbie Poster
1 post since Aug 2006
Reputation Points: 10
Solved Threads: 0
 

i think your datasource address is wrong:

Set baglanti=Server.CreateObject("ADODB.Connection")
kitapeviDB.open "Provider=Microsoft.Jet.Oledb.4.0;
Data Source="&Server.mappath("databases\database.mdb")

this is for access is the address is wrong server can not find the database...

neo_returned
Newbie Poster
2 posts since Aug 2006
Reputation Points: 10
Solved Threads: 0
 
Dear All how can i connect my ASP page to SQL server database in a local machin i get this error Running connectivity tests... Attempting connection [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. TESTS FAILED!



code for connection:
Set myconn=Server.CreateObject("ADODB.Connection")
myconn.open "Provider=Microsoft.Jet.Oledb.4.0;
Data Source=Servername;database=dbname"

seibor
Newbie Poster
4 posts since Sep 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You