You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
907 B
32 lines
907 B
/* 為了避免任何可能發生資料遺失的問題,您應該先詳細檢視此指令碼,然後才能在資料庫設計工具環境以外的位置執行。*/
|
|
BEGIN TRANSACTION
|
|
SET QUOTED_IDENTIFIER ON
|
|
SET ARITHABORT ON
|
|
SET NUMERIC_ROUNDABORT OFF
|
|
SET CONCAT_NULL_YIELDS_NULL ON
|
|
SET ANSI_NULLS ON
|
|
SET ANSI_PADDING ON
|
|
SET ANSI_WARNINGS ON
|
|
COMMIT
|
|
BEGIN TRANSACTION
|
|
GO
|
|
ALTER TABLE dbo.OTB_SYS_Departments ADD
|
|
DelStatus char(1) NULL
|
|
GO
|
|
ALTER TABLE dbo.OTB_SYS_Departments ADD CONSTRAINT
|
|
DF_OTB_SYS_Departments_DelStatus DEFAULT 'N' FOR DelStatus
|
|
GO
|
|
ALTER TABLE dbo.OTB_SYS_Departments
|
|
DROP CONSTRAINT PK_OTB_SYS_Department
|
|
GO
|
|
ALTER TABLE dbo.OTB_SYS_Departments ADD CONSTRAINT
|
|
PK_OTB_SYS_Department PRIMARY KEY CLUSTERED
|
|
(
|
|
OrganizationID,
|
|
DepartmentID
|
|
) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
|
|
GO
|
|
ALTER TABLE dbo.OTB_SYS_Departments SET (LOCK_ESCALATION = TABLE)
|
|
GO
|
|
COMMIT
|