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
I'm trying to use the Export-DbaScript to make create scripts for stored procedures and user defined functions. However, if there is a function depends on another to exist, it will error out. It seems like there should be an option to check for dependencies so it creates the script with all the objects in the correct order. Or maybe it does and I'm just missing something? Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to use the Export-DbaScript to make create scripts for stored procedures and user defined functions. However, if there is a function depends on another to exist, it will error out. It seems like there should be an option to check for dependencies so it creates the script with all the objects in the correct order. Or maybe it does and I'm just missing something? Thanks!
Example:
Get-DbaDbUdf -SqlInstance $serverInstance -Database $databaseName -ExcludeSystemUdf |
Export-DbaScript -FilePath $outputFilePath -Append -ScriptingOptions $scriptingOptions
Beta Was this translation helpful? Give feedback.
All reactions