Question :
I’m trying to move the system databases using Powershell ie. without using any T-SQL.
- Using SMO :
Install-Module SQL-SMO
$smo = New-SMO -ServerName localhost
$smo.databases["TempDB"].PrimaryFilePath= "F:Tempdb"Answer :
I’m trying to move the system databases using Powershell ie. without using any T-SQL.
Install-Module SQL-SMO
$smo = New-SMO -ServerName localhost
$smo.databases["TempDB"].PrimaryFilePath= "F:Tempdb"
Answer :