Opening SQL Server

Oct 8, 2010 at 1:10pm
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
Oct 11, 2010 at 1:32pm
If your Operating System is Windows ;
Try ShellExecute() function instead of System.

Oct 13, 2010 at 4:27pm
ShellExecute () function will be of use, if it doesn't work you need to reinstall the data base.

Last edited on Oct 13, 2010 at 4:29pm
Topic archived. No new replies allowed.