Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
can no longer connect to sql server from web server
Old 05-22-2006, 03:39 PM can no longer connect to sql server from web server
Junior Talker

Posts: 3
Trades: 0
came in this morning and found my asp webpage is erroring out when trying to connect to a sql server database it has been connecting to for 2 years. although the error i get is "access denied" - it takes a long time for the error to appear - as though it is timing out rather than an actual "access denied". i can take the asp page and place it on other servers and it connects just fine. it just won't connect from one particular server. the page was running fine friday afternoon. no work was done over the weekend. i just don't get it. could there be a service which is supposed to be running and isn't?

here's my connection process:

Const cConnection = "PROVIDER=SQLOLEDB;DATA SOURCE=CLUSTERSQL;UID=webuser;PWD=;DATABASE=PartsF inder"
Dim objConnection

Set objConnection = Server.CreateObject("ADODB.Connection")
objConnection.ConnectionString = cConnection
objConnection.CursorLocation = 3 '* adUseClient
objConnection.Open

what in the world could be wrong?
threeo is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-22-2006, 06:29 PM Re: can no longer connect to sql server from web server
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Maybe someone put a password on your database. As it stands right now, that connection string you listed suggests that your database isn't especially secure.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 05-22-2006, 10:14 PM Re: can no longer connect to sql server from web server
Junior Talker

Posts: 3
Trades: 0
the exact same asp page works fine from other machines.
i am really baffled. my only guess is that some needed service isn't running but i don't know what the minimum services are which i'd need to make this connection. do you?
threeo is offline
Reply With Quote
View Public Profile
 
Old 05-23-2006, 12:59 AM Re: can no longer connect to sql server from web server
Experienced Talker

Posts: 30
Trades: 0
From other machines? Do you mean you placing your ASP web pages on another machine to access the database on the original server? Or you mean placing both your web pages and database to another new machine?
__________________

Please login or register to view this content. Registration is FREE
MyOpinion is offline
Reply With Quote
View Public Profile
 
Old 05-23-2006, 04:40 AM Re: can no longer connect to sql server from web server
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
If it can run from other servers to the same SQL server the problem will likely be the IUSR_machinename account on the first server.

Maybe the password has been corrupted (it does happen from time to time)
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-23-2006, 09:54 AM Re: can no longer connect to sql server from web server
Junior Talker

Posts: 3
Trades: 0
i grab the asp page off of my web server and place it on pretty much any other machine and it runs fine and connects to the database. it just won't work from my web server.


i think you might be on to something as far as the iusr_machine account goes...
it kinda makes sense but i'm not sure where to start.
threeo is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to can no longer connect to sql server from web server
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.78304 seconds with 12 queries