Click here to Skip to main content
15,890,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
My SQL2005 Was default Login Name Like sa pwd Sa125. Now I have changed to pwd Sa@125

I had application c# using sql 2005.Now that application is not working giving me error that log in failed.I have changed in the application.config file. Below is config file
C#
<configuration>
 <appsettings>
    add key="connectionString" value="Data Source=SYSTAM3\SQLEXPRESS;initial catalog=Export;persist security info=False;User ID=sa;Password=sa@125;" 
    add key="AppPath" value="E:\Exim\Latest EXIM Coding as on 10.11.2009" 
 </appsettings>
</configuration>

in connectionString the value showing same pwd?
Posted
Updated 17-Sep-13 0:16am
v7
Comments
[no name] 17-Sep-13 6:33am    
Can you login to your database through SSMS using those credentials?
Salman622 17-Sep-13 6:50am    
if you solve this plz provide me the solution actully i am also in same situation
murkalkiran 20-Sep-13 2:30am    
I HAVE SLOVED THIS PROBLEM IN SERVER EXPLORE WE HAVE TO ADD NEW CONNECTION
Salman622 21-Sep-13 7:23am    
thank you but i have done by generating connection dynamically in code bihine aspx
coded007 17-Sep-13 7:29am    
Have checked with instance name

1 solution

In your connection string, change the setting for persist security:
XML
persist security info=True

If this solves your problem, somewhere in your code you retrieve the connectionstring from an SqlConnection instance instead of your config-file.
 
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