1
Answer

C#.net connect to sql server

jasminie

jasminie

13y
1.8k
1
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)