Does anybody know if it is possible somehow to set from code (e.g. from c++) option to start SQL server on OS start?
From SQL-DMO it is not possible because AutostartServer Property is only valid on the Microsoft® Windows NT® 4.0 or Microsoft® Windows 2000 OS.
It could be done by runing scm utility but that utility drops message box each time!