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}"

Comments

Popular posts from this blog

Parse XML to dynamic object in C#

C# Crop white space from around the image