How should I create my SQL connection string in c# (esp. username and password), if I'm using windows authentication mode to connect to my SQL server. I tried using the system login credentials, but it's not working. When i try to open the connection, I'm getting "System.Data.SqlClient.SqlException" exception.
Please help..
stringin your program (not recommended), or in yourapp.config?Trusted_Connection=True;to the end of your connection string and see if that works.