Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connection String (ASP - SQL)

Status
Not open for further replies.

perryair

IS-IT--Management
Apr 7, 2005
91
0
0
IL
Hi,
I have converted the MS Access connection string to SQL,
when I try to access the page thru the SQL connection string I receive the following:

Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]SQL Server does not exist or access denied.

Here are the MS Access connection string:
<%
Dim vPath, pPath, ConString
vPath = "database\prod.mdb"
pPath = Server.MapPath( vPath )
ConString = "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=" & pPath & ";" & "JET OLEDB:Database Password=pass"
%>


Here are the converted connection string:
<%
Dim ConString
ConString = "DRIVER={SQL Server};SERVER=server.domain.com;DATABASE=database;UID=user;PWD=password"
%>


Please help. . .
 
Code:
SERVER=server.domain.com

this is the issue here, you need the name or ip of the sql server, not a domain name.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top