随笔分类 -  SQL

SQL
摘要:DECLARE @FID INTDeclare @TName varchar(50)Declare cur_Depart Cursor For Select name,ID From sysobjects Where xtype ='U' AND NAME NOT IN ('ACCESS_T_VOU 阅读全文
posted @ 2017-06-26 16:37 dotqi 阅读(194) 评论(0) 推荐(0)
摘要:--如果确定是日志损坏造成,请用下面的方法恢复日志文件。--第一步--use mastergo sp_configure 'allow updates', 1reconfigure with overridego update sysdatabases set status= 32768 where 阅读全文
posted @ 2016-11-11 10:49 dotqi 阅读(210) 评论(0) 推荐(0)
摘要:1 GO 2 /****** 对象: StoredProcedure [dbo].[sp_ExportDatabase] 脚本日期: 07/18/2013 12:37:26 ******/ 3 SET ANSI_NULLS ON 4 GO 5 SET QUOTED_IDENTIFIER O... 阅读全文
posted @ 2016-01-02 19:43 dotqi 阅读(311) 评论(0) 推荐(0)
摘要:Sql遍历数据库 阅读全文
posted @ 2015-06-05 12:13 dotqi 阅读(615) 评论(1) 推荐(0)