472,340 Members | 1,855 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,340 software developers and data experts.

Problem connecting to SQL with ASP

Hi,

I am making a pressroom application, which will serve up limited numbers of news articles on our site. I am using a brand new development server which was just installed. It has both the web server and the SQL server running on the same box. For some reason, none of my ASP scripts can connect to the SQL server on that box, but I can connect to databases on other boxes just fine. Is this a problem in the SQL or the IIS confiruration?

Thanks,
Andrew
Aug 2 '07 #1
4 1121
Sounds like SQL Server security issue, can you log into Enterprise Manager (0r 2005 SQL Server Management Server) using the credentials specified in your connection string?
Aug 2 '07 #2
Actually, what is the error message you receive upon connection failure? Is it the usual uninformative one saying something about "Remote connections"
Aug 2 '07 #3
I can log in using SQL Server Manager using the same credentials. The error I get when executing the script is:

Microsoft OLE DB Provider for SQL Server error '80040e4d'

Login failed for user 'ASteenbuck'.

/www/com/pressroom/includes/news.asp, line 14
Aug 2 '07 #4
jhardman
3,406 Expert 2GB
I can log in using SQL Server Manager using the same credentials. The error I get when executing the script is:

Microsoft OLE DB Provider for SQL Server error '80040e4d'

Login failed for user 'ASteenbuck'.

/www/com/pressroom/includes/news.asp, line 14
this is a SQL server problem. You need to go into the db manager, turn off windows user authentication, and add a specific user to the db you need to access, then the connection statement needs to reflect that, like this:
Expand|Select|Wrap|Line Numbers
  1. set connect = server.createobject("ADODB.connection")
  2.    connect.open "DSN=myDBTable;UID=myUserID;PWD=myPwd"
It took me months to recover from this last time I changed servers.

Jared
Aug 3 '07 #5

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

Similar topics

0
by: Ali | last post by:
I'm trying to write a really basic chat program that allows 2 client programs to send messages to each other via a server. I've managed to write...
1
by: Dmitry Akselrod | last post by:
Hello everyone, I have a vb.net application that wraps the TCPListener object in a class. The server connects to the local interface and...
4
by: Dave | last post by:
Hey guys, I have an ODBC problem that has me stumped. I wrote a VBA script to run in Microsoft Excel that pulls data out of an application using...
3
by: David | last post by:
Hi, Ive been trying to work this out for the past 2 days now and im not getting anywhere fast. The problem i have is that i am using...
3
by: W Akthar | last post by:
Hi I am trying to create a windows service which queries SQL Server on timed intervals and depending on the results send appointments to...
2
by: John | last post by:
Hi I was working fine with create user wizard and the default membership provider. I have now customised the membership provider as per attached...
4
by: snowweb | last post by:
I am trying to implement a CSS hierarchical unfolding menu on a site. The thing is, it needs to be dynamically populated from the results of a...
0
by: NoaGross | last post by:
Hi, I'm relly new in java and I have a problem. I'm using java applet. When using http all ok, but when trying to use https i get: Java...
1
by: spatro | last post by:
Hi, I am trying to install DBD::mysql using the CPAN and I am facing the following error: cpan> install DBD::mysql CPAN: Storable loaded ok...
2
by: orandov | last post by:
Hi, I am having a problem connecting my .net applications from the application server to the database server. When I run the application from my...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.