connecting to named instance SQL Server through C#
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hi I want to connect to the multi-instanced sql server using C# which is on remote machine. Can anyone help me in this? Thanks & Regrads Abhijeet
-
Hi I want to connect to the multi-instanced sql server using C# which is on remote machine. Can anyone help me in this? Thanks & Regrads Abhijeet
In your connection string, specify the instance as part of the Data Source:
Data Source = \\pathToTheDatabase\mySqlServerInstance
For more information, see the SqlConnectionString docs[^]