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 2008 Forums
 Transact-SQL (2008)
 connection string to sql server 2008

Author  Topic 

jassie
Constraint Violating Yak Guru

332 Posts

Posted - 2013-02-05 : 20:52:15
In the connection string information to a sql server 2008 r2 database, I am currently setting the integrated security to true. This way I do not need to pass in user name and password. However there are times when the username and password is required.
When this is the case, can I use a windows identity to pass in the user info? If not, do I need to pass in a sql server username and password?
Can you tell me what the preferred method is?

srimami
Posting Yak Master

160 Posts

Posted - 2013-02-05 : 23:24:57
You need to pass Sql Server user name and password and Yes for security reasons username/password method is preferred.
Go to Top of Page
   

- Advertisement -