How to detect default instance of SQL Server?
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hello dear gurus, I'd like to know how I can detect in C# if the default instance of MS SQL Server is installed??? Is there a way to do that??? Can someone show me a code snipet or something please? Best regards. Fred.
There is no spoon.
The default instance on a machine can be reached by connecting to localhost. So, you can try to connect and see what happens. But, if it's no running and not set to autostart, this will fail.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog