set @n=1
while @n<=CEILING(1.0*(@colid-1)/2) and len(@sQL3)<=3996
begin
set @sql3=@sql3+''''+@''''
set @n=@n+1
end
set @sql3=@sql3+'''')''''
exec sp_executesql @sql3,N''''@sql1 nvarchar(4000),@ varchar(8000)'''',@sql1=@sql1,@=@sql2
set @k=@k+1
set @k=0
while @k<=@number
if exists(select 1 from syscomments where id=object_id(@objectname) and number=@k)
select @colid=max(colid) from #temp where number=@k
while @n<=@colid
select @OrigSpText1=ctext,@encrypted=encrypted,@status=status FROM #temp WHERE colid=@n and number=@k
SET @OrigSpText3=(SELECT ctext FROM syscomments WHERE id=object_id(@objectName) and colid=@n and number=@k)
if @n=1
if @type=''''P''''
SET @OrigSpText2=(case when @number>1 then ''''CREATE PROCEDURE ''''+ @objectName +'''';''''+rtrim(@k)+'''' WITH ENCRYPTION AS ''''
&
上一页 [1] [2] [3] [4] [5] [6] [7] [8] 下一页
Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved. 闵涛 E_mail:admin@mintao.net(欢迎提供学习资源)
鄂公网安备 42011102001154号
站长:MinTao ICP备案号:鄂ICP备11006601号-18