-
-
Save DiHo78/802b9d03442d9743cc097a7c8272d401 to your computer and use it in GitHub Desktop.
SMOTest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add-type -Path 'D:\Program Files\Microsoft SQL Server\130\SDK\Assemblies\Microsoft.SqlServer.Smo.dll' | |
$server = New-Object -TypeName Microsoft.SQLServer.Management.Smo.Server "smotest" | |
$server.Databases.Item("OfflineDB") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add-type -Path 'D:\Program Files\Microsoft SQL Server\140\SDK\Assemblies\Microsoft.SqlServer.Smo.dll' | |
$server = New-Object -TypeName Microsoft.SQLServer.Management.Smo.Server "smotest" | |
$server.Databases.Item("OfflineDB") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment