Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Secure Connection from a C# Desktop Application

Author  Topic 

Frank99
Starting Member

1 Post

Posted - 2010-03-09 : 21:52:19
I am developing a C# Desktop Application that connects to a SQL Server 2005 database hosted on a web server. The desktop application will be deployed on user pc's throughout the country. I am looking for a secure connection string for the code to connect to sql server 2005 through the c# desktop application. I would like to protect the database user name and password as much as possible.

This is what I have currently put together based upon information I read on a MS web site:

Data Source=XXXXXXXX;Initial Catalog=BaseXXX;Encrypt=True;Persist Security Info=False;Trusted_Connection=sspi;" +
"User ID=sa;Password=XXX")

Thank You

Frank-

   

- Advertisement -