-3

I remember I used to use a tool that displayed a form so that any reachable database could be selected, like the initial prompt when you open SSMS. I don't remember if it's a StackOverflow tool, something from Microsoft, or a NuGet thing. Does anyone know what I am referring to?

I mean a tool accessible from the C# level, that is.

  • 2
    To clarify: this is an add-on to Visual Studio, that lets you add in the selected server to your C# code? – RDFozz Aug 7 '17 at 18:35
4

You are probably looking for the Microsoft.Data.ConnectionUI library.

It can be installed via nuget if you need it.

Please see SQL Connection Dialog for sample code using it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.