Thread: FoxPro Some General Questions/Start SQL service with Visual FoxPro Code

Start SQL service with Visual FoxPro Code
* SQL 2000
oShell = CREATEOBJECT("shell.application")
? oShell.IsServiceRunning("MSSQLSERVER")
? oShell.ServiceStart("MSSQLSERVER", .F.)
? oShell.ServiceStop("MSSQLSERVER", .F.)