Opening SQL Server

closed account (Gy7oizwU)
Hi all

I have a small issue, i am opening SQL Server when clicking on a button by simply calling SYSTEM(ssms.exe -S........) SQL server opens and logs in fine however, the CMD window does not close and remains open until i close sql server. My windows form also becomes unresponsive. Does anyone have any idea how i can close the cmd window once sql i opened?

Thanks
If your Operating System is Windows ;
Try ShellExecute() function instead of System.

ShellExecute () function will be of use, if it doesn't work you need to reinstall the data base.

Last edited on
Topic archived. No new replies allowed.