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 working with multiple database and executing all the files in a single transaction.
This is my sample command.
Install-DBOScript -ScriptPath ${{github.workspace}}\applications\scripts* -SqlInstance $dbServer
-Database test_db -Credential $sqlcredential
All my sql scripts should define the database in the first line of each file with the following command USE database_name.
The problem after executing a script of other databases, filename didn't save in the (schemaversions) of db where I initially connected (test_db in sample above). In result the sql file of other databases rerun again (once I re-run the pipeline).
Currently my work around is to add a command "USE test_db" at the end of each sql file.
Any thoughts?
The text was updated successfully, but these errors were encountered:
Hi,
I'm working with multiple database and executing all the files in a single transaction.
This is my sample command.
Install-DBOScript -ScriptPath ${{github.workspace}}\applications\scripts*
-SqlInstance $dbServer
-Database test_db
-Credential $sqlcredential
All my sql scripts should define the database in the first line of each file with the following command USE database_name.
The problem after executing a script of other databases, filename didn't save in the (schemaversions) of db where I initially connected (test_db in sample above). In result the sql file of other databases rerun again (once I re-run the pipeline).
Currently my work around is to add a command "USE test_db" at the end of each sql file.
Any thoughts?
The text was updated successfully, but these errors were encountered: