You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 7, 2024. It is now read-only.
I am using and tying to get selected tables and views and stored procedures. The code works fine.
When I execute for multiple servers, each server order of objects is different. I was expecting the order is same - either the order I provided (or) by type and name (or) by name. It is not doing that. Wondering if this is the default behavior? If not, please fix it!
Hi,
I am using and tying to get selected tables and views and stored procedures. The code works fine.
When I execute for multiple servers, each server order of objects is different. I was expecting the order is same - either the order I provided (or) by type and name (or) by name. It is not doing that. Wondering if this is the default behavior? If not, please fix it!
$Servers = "Server1\InstanceD", "Server2\InstanceQ", "Server3\InstanceU", "Server4\InstanceP"
$WriteToPath = "C:\User\Scripts Generated$ ($Server2) $ ($db) - objects.sql"
$db = "MySQLDB"
$db_objects = "Schema.Table1",
"dbo.StoredProcedure1",
"Schema.View1",
"Schema.Table2",
"Schema.View2"
foreach($Server in $Servers) {
$Server2 = $Server.Replace("", "_")
mssql-scripter -S $Server -d $db --exclude-headers --include-objects $db_objects -f $WriteToPath
}
Thanks
The text was updated successfully, but these errors were encountered: