網誌標籤
.NET Framework
(5)
文字編碼
(4)
防毒軟體
(1)
其他
(11)
資料庫
(25)
攝影
(2)
ADO.NET Entity Framework
(2)
ASP.NET
(49)
ASP.NET MVC
(4)
ASP.NET Test
(4)
CSS
(1)
Design Patten
(1)
FCKEditor
(3)
HTML
(2)
HTML5
(1)
hyper-v
(1)
IIS
(6)
JavaScript
(9)
JQuery
(1)
LINQ
(2)
MailTo編碼
(2)
oracle
(6)
RegularExpression
(1)
Rhino Mocks
(1)
Security
(2)
Server2008R2
(1)
SharePoint
(5)
Sql 2008
(1)
SSIS
(1)
SyntaxHighlighter
(1)
TFS2010
(1)
VirtualBox
(1)
VistualStudio2010
(3)
vs2003升級vs2008
(1)
windows
(1)
windows 7
(1)
MSSQL 交易層級改為Snapshot層級
開啟snapshot層級(開啟後會取代原預設Read Commited層級)
ALTER DATABASE MyDatabase SET ALLOW_SNAPSHOT_ISOLATION ON;
ALTER DATABASE MyDatabase SET READ_COMMITTED_SNAPSHOT ON;
關閉snapshot層級
ALTER DATABASE MyDatabase SET ALLOW_SNAPSHOT_ISOLATION OFF ;
ALTER DATABASE MyDatabase SET READ_COMMITTED_SNAPSHOT OFF;
--[開啟SNAPSHOT_ISOLATION]
ALTER DATABASE VATC4 SET single_user with rollback immediate;
go
ALTER DATABASE VATC4 SET single_user;
go
ALTER DATABASE VATC4 SET ALLOW_SNAPSHOT_ISOLATION ON;
go
ALTER DATABASE VATC4 SET READ_COMMITTED_SNAPSHOT ON;
go
ALTER DATABASE VATC4 SET multi_user;
go
--[關閉SNAPSHOT_ISOLATION]
ALTER DATABASE VATC4 SET single_user with rollback immediate;
go
ALTER DATABASE VATC4 SET single_user;
go
ALTER DATABASE VATC4 SET ALLOW_SNAPSHOT_ISOLATION OFF;
go
ALTER DATABASE VATC4 SET READ_COMMITTED_SNAPSHOT OFF;
go
ALTER DATABASE VATC4 SET multi_user;
go
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言