Thursday, 14 June 2012

SQL Server connection string

* Windows Authentication

"Persist Security Info=False; Integrated Security=SSPI; Server={0}; Database={1}; Connect Timeout={2}; Application Name={3}"

* SQL Server Authentication

"Persist Security Info=False; Server={0}; Database={1}; Uid={2}; Pwd={3}; Connect Timeout={4}; Application Name={5}"

No comments:

Post a Comment