can tell me how i write code for windows authentification in c#.net to connect the remote computer and getting the database back up from sql server 2000.
C#
2
Posts
2
Posters
0
Views
1
Watching
-
hi, can tell me how can i write code for windows authentification in c#.net 1.1 to connect the remote computer and getting the database back up from sql server 2000.
this is haneef
heres the connection string i use for creating SQl Server connection ConnectionString="uid='sa'; pwd='sasa';" +"Initial Catalog=;" +"Data Source=.;"; if u want it with windows authentication onlythen use this ConnectionString="Integrated Security=SSPI;" +"Initial Catalog=;" +"Data Source=.;"; where Initial Catalog is the name of the Databaseu want to connect to and DataSource is the name of the server u want to connect to. if u are working in a standalone environment having ur own PC as the server then use "." for data source. hope this helps Saira