I am creating a Windows app in which I need to create a connection string automatically. I create a Windows form similar to SQL Server Management Studio Connect to server form. For this I need few things
local SQL server Name of the system.
After user fill the form like select server Name and authentication type then i need to check that that filled details are correct.
I need to create automatic connection string in c# and create automatic database and for this I execute SQL query in c# code that are working fine.
So help me get the instance name and check the data is valid in C# window application.