Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Howto change SQL serevr startup options using SQL SMO

$
0
0
I would to change the SQL service start up params from my C# application,without touching any reg settings from my code.SQL 2014 SDK has a dll named as "Microsoft.sqlserver.sqlwmimanagement.dll" which has SMO.WMI.Service class, by which we can modify the params. It is working fine on my machine which has SQL 2014.But when I take same application along with SQL 2014 SDK dll to new machine which has SQL 2012 installed, then I am getting an error saying that "WMI provider is not available on this machine".Looks like this dll(specially SMO.WMI.Service class) is not backward compatible.[b]Please suggest any T-SQL command or any other way by which we can change the start up params which will be persistent.[/b]RegardsAshish

Viewing all articles
Browse latest Browse all 3145

Trending Articles