SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

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

Constraint Violating Yak Guru

325 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  
 New 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.03 seconds. Powered By: Snitz Forums 2000