Tuesday, 2 October 2012

SQL Connection string , with windows Authentication

you can use this to connect to sql server data base whene authentication mode is windows

SqlConnection con = new SqlConnection("Data Source=OMSAI-PC;Initial Catalog=Northwind;Integrated Security = SSPI;")

this works for me......................