By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,162 Members | 1,066 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,162 IT Pros & Developers. It's quick & easy.

Not able to connect to datasource from local hosted website in Classic ASP

P: 1
Dear members
I am writing n this blog for the first time.

I am a .net person but recently allotted a classic asp application to redesign in classic asp.
The website is already running on hosted server but when I try to run it on my localhost it gives me error.

Expand|Select|Wrap|Line Numbers
  1. Microsoft OLE DB Provider for ODBC Drivers error '80004005'
  2.  
  3. [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.
  4.  
  5. /test_local/ASPUtils.asp, line 12
  6.  
I am using Windows 7 with IIS 7.5

SQL server 2005

my code for connections string is as below.

Expand|Select|Wrap|Line Numbers
  1. dim ConnectionString
  2. Dim IIS_IP
  3.  
  4.     ConnectionString = "uid=UserName;pwd=password;driver={SQL Server};server=myServerIP\SQLA;database=database_name;dsn=,,connection=adConnectAsync"
  5.            session.Timeout = 1200
  6.     Set conn = Server.CreateObject("ADODB.Connection")
  7.     conn.Open ConnectionString
  8.     conn.ConnectionTimeOut = 30
  9. conn.ConnectionString = ConnectionString
  10.  
Thanks in advance.
Apr 4 '14 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.