PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

Cannot open database requested in login ''. Login fails. Login failed for user ''.

 
 
Nevena
Guest
Posts: n/a
 
      16th Apr 2004
This is my connections string"
String = "Initial Catalog=" & _
"DBName;Data Source=ServerIPAdd;User " & _
"ID=uid;password=somepassword"

I'm using System.Data.SqlClient.SQLConnection to establish connection
to the SQl server, and this is an error message that i'm getting:

Cannot open database requested in login 'DBName'. Login fails. Login
failed for user 'uid'.

I have tried ( it seems ) everthing, begining with the connection
string itself and then ASPNET user settings on the web server.
I don't want to use integrated security.

Please HELP!!!
Does anyone have any idea?

We are using Windows Server 2003 and SQL Server 7.

Thank you!
 
Reply With Quote
 
 
 
 
William Ryan eMVP
Guest
Posts: n/a
 
      16th Apr 2004
In your example is DBname the literal database name?
"Nevena" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> This is my connections string"
> String = "Initial Catalog=" & _
> "DBName;Data Source=ServerIPAdd;User " & _
> "ID=uid;password=somepassword"
>
> I'm using System.Data.SqlClient.SQLConnection to establish connection
> to the SQl server, and this is an error message that i'm getting:
>
> Cannot open database requested in login 'DBName'. Login fails. Login
> failed for user 'uid'.
>
> I have tried ( it seems ) everthing, begining with the connection
> string itself and then ASPNET user settings on the web server.
> I don't want to use integrated security.
>
> Please HELP!!!
> Does anyone have any idea?
>
> We are using Windows Server 2003 and SQL Server 7.
>
> Thank you!



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot open user default database. Login failed. Login failed for user 'HEMPC\ASPNET' Tony Johansson Microsoft ASP .NET 3 2nd Jan 2010 05:09 PM
Cannot open database requested in login 'HumanResources'. Login failed for user 'companyDomain\BOSIIS$'. Homer Microsoft ASP .NET 3 25th Sep 2007 08:45 PM
Cannot open database requested in login <DBName>. Login fails. =?Utf-8?B?QUw=?= Microsoft ADO .NET 1 7th Feb 2006 04:17 PM
Cannot open database requested in login 'x'. Login failed for user =?Utf-8?B?QnJpYW4gS2l0dA==?= Microsoft C# .NET 7 9th Jan 2006 10:59 PM
Cannot open database requested in login 'xyz'. Login fails. Nans Microsoft ASP .NET 2 17th Jun 2004 08:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:39 AM.