SQL Server Single User Mode
how can use powershell change database mode single, multi
i know t-sql way ... wanted learn power shell way
im working on function, want
$server= sqlserver:\sql\<server>\<instance>
$db = $server.databases("<dbname>")
$db.useraccess = "single"
$server.killallprocesses("<dbname>")
$db.alter()
Windows Server > Windows PowerShell
Comments
Post a Comment