SQL Server 获取某时间点后修改的函数Function 并以文本格式显示
2013-07-12 17:10
603 查看
修改查询分析器如下选项
右键=》查询选项 =》结果=》文本=》 取消 在结果集中包括列标题 的勾选
右键=》将结果保存到=》 选择 以文本格式显示结果
执行如下SQL
右键=》查询选项 =》结果=》文本=》 取消 在结果集中包括列标题 的勾选
右键=》将结果保存到=》 选择 以文本格式显示结果
执行如下SQL
declare @funcname nvarchar(100)=N''; declare curFunc cursor for select [name] --,create_date --,modify_date FROM sys.all_objects where type_desc LIKE '%FUNCTION%' and substring([name],1,3) not in ('dm_','fn_') and modify_date >='2013-07-11 00:00:00' order by modify_date desc; open curFunc; fetch next from curFunc into @funcname; while @@FETCH_STATUS = 0 begin print(N'IF EXISTS(SELECT 1 FROM SYS.OBJECTS WHERE [NAME]=N''' + @funcname +''' AND [TYPE]=''FN'')') PRINT(N'DROP FUNCTION ' + @funcname); print N'GO'; exec ('sp_helptext ' + @funcname); print N'GO'; fetch next from curFunc into @funcname; end close curFunc; deallocate curFunc;
相关文章推荐
- PC上文件格式隐藏的恢复方法---文本文档的txt格式修改成.html总是显示.html.txt
- Flex中如何通过监听focusIn和focusOut事件,在通过displayAsPassword属性固定密码格式显示文本框获取焦点时显示文本
- 制作分页显示时用paginate()函数获取对象后如何将获取到的某一键值进行修改
- SQL Server获取存储过程、表、自定义函数的最后修改时间
- ASP.NET(C#)中使数据库中读取的文本换原格式显示的函数
- 获取AIX文件最后修改时间,类似Linux的time-style显示的时间格式
- c# Eval函数中将日期显示的格式修改为yyyy-MM-dd形式
- edittext显示html格式化的内容,修改内容后 获取带html格式的内容并上传到服务器
- qtp 获取弹出提示框(异常框)的文本显示信息(正则表达式和自定义函数应用)
- ASP.NET(C#)中使数据库中读取的文本换原格式显示的函数
- java根据网页URL获取正文信息,并调整正文格式为段落显示---(两种方式)
- Java连接HBASE数据库,创建一个表,删除一张表,修改表,输出插入,修改,数据删除,数据获取,显示表信息,过滤查询,分页查询,地理hash
- SQL server 日期输出的格式大全---- getdate()函数的使用
- iOS UILabel 展示不下,显示 xxx... 时,获取容纳字符文本真正的宽度
- 针对获取json格式数据,easyui左侧显示json里的有关数据
- Linux文本格式样式修改
- html文件修改后缀为aspx之后在ie6中格式显示不正确问题的解决办法
- oracle_oracle中修改日期的显示格式
- PL SQL 修改 日期 显示格式
- opencv:windows下调用cvShowImage等窗口显示函数报错:The function is not implement