Connecting to SQL server in Local machine

Reply

Join Date: Aug 2006
Posts: 1
Reputation: alirezaaali is an unknown quantity at this point 
Solved Threads: 0
alirezaaali alirezaaali is offline Offline
Newbie Poster

Connecting to SQL server in Local machine

 
0
  #1
Aug 11th, 2006
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!
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 2
Reputation: neo_returned is an unknown quantity at this point 
Solved Threads: 0
neo_returned's Avatar
neo_returned neo_returned is offline Offline
Newbie Poster

Re: Connecting to SQL server in Local machine

 
0
  #2
Aug 18th, 2006
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...
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 4
Reputation: seibor is an unknown quantity at this point 
Solved Threads: 0
seibor seibor is offline Offline
Newbie Poster

Re: Connecting to SQL server in Local machine

 
0
  #3
Oct 6th, 2006
Originally Posted by alirezaaali View Post
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"
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC