摘要: SET NoCount ON DECLARE @tableName varchar(512) Declare @SQL varchar(2048) SET @tableName='' WHILE EXISTS ( --Find all child tables and those which have no relations SELECT T.table_name FROM INFORMATION_SCHEMA.TABLES T LEFT OUTER JOIN INFORMATION_SCHE... 阅读全文
posted @ 2012-07-04 11:37 辣椒粉 阅读(263) 评论(0) 推荐(0) 编辑