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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 connection string to sql server 2008
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Constraint Violating Yak Guru

332 Posts

Posted - 02/05/2013 :  20:52:15  Show Profile  Reply with Quote
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?

Posting Yak Master

160 Posts

Posted - 02/05/2013 :  23:24:57  Show Profile  Reply with Quote
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
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000