Hi We have a customer which is asking if sql DB Snapshot isolation is supported by Alliance (i think not ) but i wanted to have an official answers on this.
Thanks for your feedback
Rgds
Christophe
Hi We have a customer which is asking if sql DB Snapshot isolation is supported by Alliance (i think not ) but i wanted to have an official answers on this.
Thanks for your feedback
Rgds
Christophe
Hi Christophe,
Short answer: No, it is not set up for snapshot isolation.
Longer explanation:
If you run this query for the database in question, you can see that it is turned off.
SELECT
name AS DatabaseName,
snapshot_isolation_state_desc,
is_read_committed_snapshot_on
FROM
sys.databases
WHERE
name = 'YourDatabaseName';
You should see a result like:
DatabaseName | snapshot_isolation_state_desc | is_read_committed_snapshot_on |
---|---|---|
YourDatabaseName | OFF | 1 |
The SQL transaction scripts must be modified to use the isolation snapshot which the Alliance scripts do not have these defined at all. An example of such a transaction would be:
-- Set the isolation level to Snapshot
SET TRANSACTION ISOLATION LEVEL SNAPSHOT;
BEGIN TRANSACTION;
-- Your SQL operations here
SELECT * FROM Orders WHERE CustomerID = 123;
-- You can perform updates too
UPDATE Orders SET Status = 'Processed' WHERE OrderID = 456;
COMMIT;
I have never seen this in any of the scripts retrieved from transactions out of Alliance so I am confident this is not directly supported and would need development for it to be specifically used.
Please consider that this also poses its own risks if enabled such as:
Hope this helps.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.