Why are you passing a user and a password if you are using SSPI: Just something like:
Data Source=localhost; Integrated Security=SSPI; Initial Catalog=pubs Will do the job. On Sun, Aug 16, 2009 at 11:31 AM, stanlei<[email protected]> wrote: > > is there anything wrong with this ... > SqlConnection conn = new SqlConnection("Data Source='MOI-PC/ > SQLEXPRESS';Initial Catalog =project;Integrated Security=SSPI;User > ID=sa;Password=madurai;");
