Setting for transaction isolation level not used in script
JosvanDuijn
Posts: 14
Hi,
When i set the transaction isolation level to READ COMMITTED under Tools, Application Options, and create a new compare project, the setting is not used in the generated scripts. Instead the transaction isolation level is set to SERIALIZABLE.
I really want this option to work, because we use a lot of replicated objects, and now (if I forget to change the script) we get errors during the deploy.
Anyone any bright ideas?
Thanks,
Jos
When i set the transaction isolation level to READ COMMITTED under Tools, Application Options, and create a new compare project, the setting is not used in the generated scripts. Instead the transaction isolation level is set to SERIALIZABLE.
I really want this option to work, because we use a lot of replicated objects, and now (if I forget to change the script) we get errors during the deploy.
Anyone any bright ideas?
Thanks,
Jos
Comments
You have to specify the transaction isolation level on the command-line using the command-line, for example /til:"READ COMMITTED"
Please let us know if this works.
I set the option under Tools, Application options to 'READ COMMITTED' and then create a new project, compare to databases, generate a script and the script then starts by setting the transaction isolation level to SERIALIZABLE.
BTW, I'm using SQL Compare Pro version 10.4.8.87.
Example output:
HKEY_CURRENT_USER\Software\Red Gate\SQL Compare 10\UI
(Value name is TransactionIsolationLevel: it's a string and the value should be what you set in the options.)
I changed the Transaction Isolation Level to 'Read Uncommitted' in Application Options. I see 'Read Uncommited' as the TransactionIsolationLevel in the registry. I am comparing two SQL 2012 databases that are NOT under Source Control. However SQL Compare 10 UI creates the deployment script with 'SET TRANSACTION ISOLATION LEVEL SERIALIZABLE'.
What is the purpose of the 'Transaction Isolation Level' in Tools, Application Options?
Within the SET Transaction Isolation Level statement, you must specify one of the isolation level.
@MurrayTaylor Can you please explain how connecting to SQL Server will affect the 'SET Transaction Isolation Level' statement generated in the RedGate Migration script?