摘要:
1、Snapshot Isolation Snapshot isolation must be enabled for DB ALTER DATABASE {DBNAME} SET allow_snapshot_isolation ON Set transaction isolation level snapshot UPDATE transactions k... 阅读全文
摘要:
alter PROCEDURE get_tableinfo ASif not exists(select * from dbo.sysobjects where id = object_id(N'[dbo].[tablespaceinfo]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)create table tablespaceinfo(namein... 阅读全文
摘要:
SQL using IN The SQL IN statement allows returning a set of records based on a variable (unknown at design time) number of keys. But IN doesn't allow parameters, which leaves us with either fixed list... 阅读全文
摘要:
SELECTt.name AS theTable,c.name AS theColumn,ty.name AS theTypeFROM sys.tables tJOIN sys.columns c ON t.object_id = c.object_idJOIN sys.types ty ON c.system_type_id = ty.system_type_id 阅读全文