Click here to Skip to main content
15,888,323 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i uploaded my application . every things are ok . but the browser just shows me
System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'myusername name Password=mypwd'
what is the problem ?!
here is my connection string

HTML
<add name="conStr" connectionString="Server=Ipaddress Database=mydb;User Id=myusernamePassword=mypwd;Trusted_Connection=False;" providerName="System.Data.SqlClient"/>


the username and the password are ok because when i login via sql server 2008 R2 they work fine !
Posted
Updated 11-Jul-15 2:46am
v4

1 solution

try as below, separate each parameter with ';'
Server=myServerAddress;Database=myDataBase;User Id=myUsername;
Password=myPassword;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900