摘要: 1.备份 ALTER procedure [dbo].[DB_backup] (@DB_Name nvarchar(40))as declare @back_str nvarchar(150),@mysql nvarchar(600) set @back_str = case datepart(dw,getdate()) when 1 then 'Z:\backup\sunday\' when 2... 阅读全文
posted @ 2010-01-28 09:57 自由的企鹅 阅读(571) 评论(0) 推荐(0) 编辑
摘要: Create VIEW [dbo].[v_GetDate]ASSELECT dt=CONVERT(VARCHAR(6),GETDATE(),12)CreateFUNCTION [dbo].[f_er_NextBH]() RETURNS char(7)ASBEGIN DECLARE @dt CHAR(6) DECLARE @d CHAR(2) SELECT @dt=dt FROM v_GetDate... 阅读全文
posted @ 2010-01-28 09:53 自由的企鹅 阅读(183) 评论(0) 推荐(0) 编辑
摘要: USE [CoatERdb]GO/****** Object: UserDefinedFunction [dbo].[V_ReProducing] Script Date: 01/28/2010 09:45:11 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER OFFGOALTER function [dbo].[V_ReProducing]( @_... 阅读全文
posted @ 2010-01-28 09:48 自由的企鹅 阅读(253) 评论(0) 推荐(0) 编辑