M
middletree
This may be a SQL error, but I suspect it's a connection string problem,
hence my posting it here.
I have an Intranet app at the company I work for. It's classic ASP, and
connects to a SQL Server 2000. Both the production version and my dev
version run on Win2K server boxes, with both the code and the database on
the same machine.
I wanted to set up the same app on my computer at home. My spare one,
actually, which has Win2003 as the OS. I made the alterations to IIS to
allow ASP, which is turned off by default.
When I go to any page which has an SQL query, say to build a dropdown box, I
get an ASP 0113 error. ASPfaq.com tells me that it's a timeout.
I know that the ASP code itself is running fine. That is, I can do a
response.write. But anything database related is failing with this error.
Here's my connection string, from an include file:
====================================
Dim strDBConnection
strDBConnection = _
"Provider=SQLOLEDB;" & _
"Persist Security Info=False;" & _
"Data Source=w2003;" & _
"User ID=deleted;" & _
"Password=deleted;" & _
"Database=deleted;"
Dim objConnection
Set objConnection = Server.CreateObject("ADODB.Connection")
objConnection.Open strDBConnection
=======================================
Obviously, I deleted my ID, PW, and DBName for this post. Besides that, the
code is exactly the same as on my dev box, which works, and my home box,
which doesn't.
I should add that I changed DataSource in this string on my home box to the
Windows name of the machine, which is w2003. When I open up Enterprise
manager, it just says "local", but I guessed that I couldn't put the word
local there.
OK, I think I have all the relevant info in this post. Anyone have any
ideas?
hence my posting it here.
I have an Intranet app at the company I work for. It's classic ASP, and
connects to a SQL Server 2000. Both the production version and my dev
version run on Win2K server boxes, with both the code and the database on
the same machine.
I wanted to set up the same app on my computer at home. My spare one,
actually, which has Win2003 as the OS. I made the alterations to IIS to
allow ASP, which is turned off by default.
When I go to any page which has an SQL query, say to build a dropdown box, I
get an ASP 0113 error. ASPfaq.com tells me that it's a timeout.
I know that the ASP code itself is running fine. That is, I can do a
response.write. But anything database related is failing with this error.
Here's my connection string, from an include file:
====================================
Dim strDBConnection
strDBConnection = _
"Provider=SQLOLEDB;" & _
"Persist Security Info=False;" & _
"Data Source=w2003;" & _
"User ID=deleted;" & _
"Password=deleted;" & _
"Database=deleted;"
Dim objConnection
Set objConnection = Server.CreateObject("ADODB.Connection")
objConnection.Open strDBConnection
=======================================
Obviously, I deleted my ID, PW, and DBName for this post. Besides that, the
code is exactly the same as on my dev box, which works, and my home box,
which doesn't.
I should add that I changed DataSource in this string on my home box to the
Windows name of the machine, which is w2003. When I open up Enterprise
manager, it just says "local", but I guessed that I couldn't put the word
local there.
OK, I think I have all the relevant info in this post. Anyone have any
ideas?