How can we help you today? How can we help you today?
AlexYates
I'll be speaking at four events in three countries in September. :-) SQL Saturday Oslo Louisville KY SQL Server User Group WinOps London Bristol SQL User Group So far Oslo is hot and sunny - which is a nice surprise! / comments
I'll be speaking at four events in three countries in September. :-) SQL Saturday Oslo Louisville KY SQL Server User Group WinOps London Bristol SQL User Group So far Oslo is hot and sunny - which ...
0 votes
I'm at SQL Saturday Oslo and I'll be delivering a session about DB testing at WinOps London. Let me know if you plan any social stuff. :-) / comments
I'm at SQL Saturday Oslo and I'll be delivering a session about DB testing at WinOps London. Let me know if you plan any social stuff. :-)
0 votes
SQL Data Compare command line documentation: https://documentation.red-gate.com/display/SDC12/Using+the+command+line / comments
SQL Data Compare command line documentation:https://documentation.red-gate.com/display/SDC12/Using+the+command+line
0 votes
The build will run on a Bamboo build agent (not the server). That agent must have a Windows OS and have DLM Automation installed. / comments
The build will run on a Bamboo build agent (not the server). That agent must have a Windows OS and have DLM Automation installed.
0 votes
Sync-DlmDatabaseSchema uses SQL Compare under the hood. SQL Compare wraps the entire update into a single transaction. If there are errors at run time the transaction is rolled back. That is why your changes are not being deployed. This is by design - it is to protect the user from ending up in a position where only half the changes have been deployed and they need to unpick the mess. In order to solve your problem I propose two solutions. The first is quicker to implement, the second is more effort but safer: Option 1: Ignore transactions Of course, you now lose the benefit of transaction, but this should be a quick and easy way to force the behaviour you want. SQL Compare has various options that you can set, one of which is NoTransations (or nt). To run Sync-DlmDatabaseConnection with this option you could write a script that looks something like this: $options = "NoTransactions" Sync-DlmDatabaseSchema -Source $someScriptsFolder -Target $someDlmDatabaseConnection -SQLCompareOptions $options Option 2: Filter files If you would like to only deploy specific objects but you would like to keep the security of transactions you should use filters to either filter the objects out of source control our your deployment. You can filter objects out of source control using the SQL Source Control GUI. To filter the objects out at deployment time you can use -FilterPath to reference a .scpf file. The command is documented here: https://documentation.red-gate.com/display/DLMA2/Sync-DlmDatabaseSchema Creating a .scpf file is documented here: https://documentation.red-gate.com/display/SC12/Using+filters / comments
Sync-DlmDatabaseSchema uses SQL Compare under the hood. SQL Compare wraps the entire update into a single transaction. If there are errors at run time the transaction is rolled back. That is why yo...
0 votes