-2

I want to have an application where the isolation level would ALWAYS be SNAPSHOT. If I want to use stored procedures for the application, how would I go about ensuring that the transaction level stays set to SNAPSHOT?

Every time I closed the connection, would the next connection not default to the MSSQL Server default(READ COMMITTED)?

Basically its seems like I would be best off adding a 'SET TRANSACTION' command at the top off all my stored procedures.

Also, it seems that there is no way to set a 'DEFAULT' isolation level for a database, is this true?

EDIT**

I am aware of the default transaction level! Please re-read the question!

1 Answers1

1

Using READ COMMITTED SNAPSHOT ISOLATION will achieve the results you're wanting. You can enable this setting in the database properties.

Jacob Barnes
  • 1,480
  • 1
  • 12
  • 29