摘要: 使用临时表:select id=identity(int,1,1),value into #temp from YourTable select * from #temp drop table #temp 取得第11到20行记录:select IDENTITY(int,... 阅读全文
posted @ 2008-09-22 22:27 emanlee 阅读(5060) 评论(0) 推荐(0) 编辑
摘要: --获得禁用所有外键约束的语句select 'ALTER TABLE [' + b.name + '] NOCHECK CONSTRAINT ' + a.name +';' as 禁用约束 from sysobjects a ,sysobjects b where a.xtype ='f' and ... 阅读全文
posted @ 2008-09-22 21:48 emanlee 阅读(5114) 评论(0) 推荐(0) 编辑