You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
528 B
Transact-SQL
24 lines
528 B
Transact-SQL
--select * from import_approval
|
|
|
|
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.Import_approval ADD
|
|
usedweight numeric(18, 6) NULL
|
|
GO
|
|
ALTER TABLE dbo.Import_approval ADD CONSTRAINT
|
|
DF_Import_approval_usedweight DEFAULT 0 FOR usedweight
|
|
GO
|
|
ALTER TABLE dbo.Import_approval SET (LOCK_ESCALATION = TABLE)
|
|
GO
|
|
COMMIT
|
|
|
|
update Import_approval set usedweight=0 |