C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




connection problem


Posted Date: 04 Aug 2008      Total Responses: 3

Posted By: gompra       Member Level: Silver     Points: 1



i have coding like below

string Constr;
SqlConnection con = new SqlConnection();
Constr = WebConfigurationManager.AppSettings["SqlConnectionString"].ToString();
con.ConnectionString = Constr;
con.Open();
when i am try to run below error is coming

Cannot open database "sqldb" requested by the login. The login failed.
Login failed for user 'NTDTP087\ASPNET'.
how to solve this





Responses

Author: venkatesan    04 Aug 2008Member Level: DiamondRating:     Points: 0

Hi check ur username and pwd of ur sqlserver





Wish u a Very Happy New Year
Regards,
M.Venkatesan.

Please remember to Rate “Excellent or Good or Poor”



Author: sujit kumar biswal    04 Aug 2008Member Level: GoldRating:     Points: 0

check ur connection string


Author: UltimateRengan    04 Aug 2008Member Level: DiamondRating:     Points: 2

hi,
In "SqlConnectionString" give the correct username and password.
or check it

i hope this may help u

UltimateRengan
nathan.rengan@gmail.com
Trichy-Rider Group



Post Reply
You must Sign In to post a response.
Next : retrive images from database
Previous : Unable to cast object of type cart_provider [] to type 'system.Iconvertible'
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use