Hello,
I have build a setup in Visual Studio. An Installer dll is also used.
At the public override void Commit(System.Collections.IDictionary savedState) method (custom action) of the installer I run the following :
Process.Start(sqlExe, prms);
where sqlExe is the setup.exe file and prms = "/q /ACTION=Install /INSTANCENAME=xxxx_1 /FEATURES=SQL /IACCEPTSQLSERVERLICENSETERMS /SECURITYMODE=SQL /SAPWD=xxxx /SQLSVCACCOUNT=\"NT AUTHORITY\\SYSTEM\" /AGTSVCACCOUNT=\"NT AUTHORITY\\SYSTEM\" /ASSVCACCOUNT=\"NT AUTHORITY\\SYSTEM\" /RSSVCACCOUNT=\"NT AUTHORITY\\SYSTEM\" /SQLSYSADMINACCOUNTS=BUILTIN\\ADMINISTRATORS /ENABLERANU /NPENABLED=1 /TCPENABLED=1";
The setup finishes ok but when I try to access the SQL Server from management studio I get the error : Login failed for user 'xxxxx'. Reason: Server is in single user mode. Only one administrator can connect at this time. (Microsoft SQL Server, Error: 18461)
If I run the same SQL Server installation from an application it works fine.
Any idea why this is happening?
Thank you
Yannis