Main Topics
Browse All TopicsI know I just have to have missed something somewhere... I have an application written in classic .asp pages that makes a connection to SQL Server 2000. It works just fine when using the administrator login, but won't connect when using another login. I have the login setup in Windows 2003 and also added them to the SQL dbase with permissions to the dbase that I need the page to connect to. It worked just fine on the old server, but when I copied the pages to the new server and restored the dbase, I can no longer make the connection.
Here is my connection string:
vconnect = "Provider=SQLOLEDB;User Id=WdowsUser;PassWord=Thei
rsA.connect vconnect
Again, it works with the administrator login, but not this secondary login with far fewer permissions. There are permissions to specific tables and SPROCS, but nothing else.
The error I get is:
Microsoft OLE DB Provider for SQL Server error '80040e4d'
Login failed for user 'WdowsUser'.
I know it's just got to be something minor (or so I'm hoping). Suggestions anyone?
I'm just too fried after getting everything else moved and working OK - I can't seem to think anymore (and believe me that doesn't take much!) - so I need help!
TIA
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I setup the user within Windows 2003 and then went into SQL Server 2000 and added a new user to that dbase by selecting the new Windows user from a list and then giving them specific permissions to the table & sprocs as necessary.
I tried adding in the server name to the username - no go. I deleted the user from the dbase and set them up again making sure to choose from the list of Windows users and it did add in the server name. Changed my connection string to accommodate - again no go.
Honestly I was thoroughly confused by the link to the other EE solution!
I changed the provider suggestion and no go there either.
As a windows user do I need to give other permissions somehow?
>>I setup the user within Windows 2003 and then went into SQL Server 2000 and added a new user to that dbase by selecting the new Windows user from a list <<
Your connection string appears to be correct. The problem is that you are attempting to use a Windows user, where it should be a SQL Server user. Don't do that.
I mentioned that I did try the administrator (I guess I should have said sa) login, and that works, but I don't want this particular login to have full access to the entire dbase. So unfortunately that was not an option.
I added in a NEW SQL user with that UID and PW and PRESTO - it works! Thx - I figured it was something fairly simple.
>>I mentioned that I did try the administrator (I guess I should have said sa) login, and that works, but I don't want this particular login to have full access to the entire dbase. So unfortunately that was not an option. <<
Right. The reason it worked is because it is NOT a Windows user. And yes you do not want to use that user on a website.
Business Accounts
Answer for Membership
by: lundnakPosted on 2009-08-21 at 19:22:44ID: 25157188
Is this a local user or a domain user?
r
If it is a local user on the Windows 2003 server then userid=<ServerName>\WdowsUse
If it is a domain user then userid=<Domain>\WdowsUser