jasminie

jasminie

  • NA
  • 78
  • 0

C#.net connect to sql server

Aug 26 2011 10:42 AM
I am changing a C#.net 2008 application to pass user credtional information to sql server 2008 by using windows authenication instead of sql server authenication. To pass this information to sql server, can I use the following statement:
 
Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated Security=SSPI;     
 
If not, do I need to pass the individual user's name ans password to sql server? How would you complete this task in C#.net?
 

Answers (1)