<bdo id='PkwPQ'></bdo><ul id='PkwPQ'></ul>

      <small id='PkwPQ'></small><noframes id='PkwPQ'>

        <i id='PkwPQ'><tr id='PkwPQ'><dt id='PkwPQ'><q id='PkwPQ'><span id='PkwPQ'><b id='PkwPQ'><form id='PkwPQ'><ins id='PkwPQ'></ins><ul id='PkwPQ'></ul><sub id='PkwPQ'></sub></form><legend id='PkwPQ'></legend><bdo id='PkwPQ'><pre id='PkwPQ'><center id='PkwPQ'></center></pre></bdo></b><th id='PkwPQ'></th></span></q></dt></tr></i><div id='PkwPQ'><tfoot id='PkwPQ'></tfoot><dl id='PkwPQ'><fieldset id='PkwPQ'></fieldset></dl></div>
        <tfoot id='PkwPQ'></tfoot>

        <legend id='PkwPQ'><style id='PkwPQ'><dir id='PkwPQ'><q id='PkwPQ'></q></dir></style></legend>
      1. 如何在 Sql Server 2008 R2 存储过程中搜索字符串?

        how to search Sql Server 2008 R2 stored procedures for a string?(如何在 Sql Server 2008 R2 存储过程中搜索字符串?)

            <legend id='IOkHb'><style id='IOkHb'><dir id='IOkHb'><q id='IOkHb'></q></dir></style></legend>

                <bdo id='IOkHb'></bdo><ul id='IOkHb'></ul>
                  <tfoot id='IOkHb'></tfoot>

                    <tbody id='IOkHb'></tbody>

                  <small id='IOkHb'></small><noframes id='IOkHb'>

                • <i id='IOkHb'><tr id='IOkHb'><dt id='IOkHb'><q id='IOkHb'><span id='IOkHb'><b id='IOkHb'><form id='IOkHb'><ins id='IOkHb'></ins><ul id='IOkHb'></ul><sub id='IOkHb'></sub></form><legend id='IOkHb'></legend><bdo id='IOkHb'><pre id='IOkHb'><center id='IOkHb'></center></pre></bdo></b><th id='IOkHb'></th></span></q></dt></tr></i><div id='IOkHb'><tfoot id='IOkHb'></tfoot><dl id='IOkHb'><fieldset id='IOkHb'></fieldset></dl></div>
                  本文介绍了如何在 Sql Server 2008 R2 存储过程中搜索字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在将旧版 SQLS2k 迁移到 2008R2,似乎所有数据访问都是通过存储过程完成的,任何自定义查询都使用旧版 *= =*外连接语法.有超过一百个过程,所以我不想单独打开每个过程以查看它是否使用该语法(大多数不会),有没有一种方法可以查询过程/函数/视图列表的元数据/triggers,然后循环搜索 *==* 字符串,打印出违规对象的名称?

                  I'm migrating a legacy SQLS2k to 2008R2, and it seems all data access was done through stored procs, and any custom queries use the legacy *= =* outer join syntax. There are upwards of a hundred procs so I don't want to open each one individually to see if it uses that syntax (most wouldn't), is there a way I can query the metadata for a list of procs/functions/views/triggers, then loop through searching for the *= or =* strings, printing out the name of the offending object?

                  我的背景是 oracle,我知道如何在那里找到元数据视图,但我对 Sql Server 有点陌生.不能降级兼容版本.

                  My background is oracle, I know how to find the metadata views there, but I'm a bit new to Sql Server. Downgrading the compatibility version is not an option.

                  谢谢!

                  推荐答案

                  免费 Red Gate SQL 搜索?

                  Free Red Gate SQL Search?

                  或者查询sys.sql_modules

                  SELECT OBJECT_NAME(object_id)
                  FROM sys.sql_modules
                  WHERE definition LIKE '%=*%' OR definition LIKE '%*=%'
                  

                  注意:INFORMATION_SCHEMA 视图和系统注释会截断定义,因此不可靠.

                  Note: INFORMATION_SCHEMA views and syscomments truncate the definition so are unreliable.

                  这篇关于如何在 Sql Server 2008 R2 存储过程中搜索字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Building a comma separated list?(建立一个逗号分隔的列表?)
                  Errors in SQL Server while importing CSV file despite varchar(MAX) being used for each column(尽管每列都使用了 varchar(MAX),但在导入 CSV 文件时 SQL Server 中出现错误)
                  How can I import an Excel file into SQL Server?(如何将 Excel 文件导入 SQL Server?)
                  Export table to file with column headers (column names) using the bcp utility and SQL Server 2008(使用 bcp 实用程序和 SQL Server 2008 将表导出到带有列标题(列名称)的文件)
                  Concat field value to string in SQL Server(将字段值连接到 SQL Server 中的字符串)
                  SQL Server Bulk insert of CSV file with inconsistent quotes(SQL Server 批量插入带有不一致引号的 CSV 文件)

                            <bdo id='pS8fC'></bdo><ul id='pS8fC'></ul>
                          • <small id='pS8fC'></small><noframes id='pS8fC'>

                            <legend id='pS8fC'><style id='pS8fC'><dir id='pS8fC'><q id='pS8fC'></q></dir></style></legend>
                              <tbody id='pS8fC'></tbody>
                            <i id='pS8fC'><tr id='pS8fC'><dt id='pS8fC'><q id='pS8fC'><span id='pS8fC'><b id='pS8fC'><form id='pS8fC'><ins id='pS8fC'></ins><ul id='pS8fC'></ul><sub id='pS8fC'></sub></form><legend id='pS8fC'></legend><bdo id='pS8fC'><pre id='pS8fC'><center id='pS8fC'></center></pre></bdo></b><th id='pS8fC'></th></span></q></dt></tr></i><div id='pS8fC'><tfoot id='pS8fC'></tfoot><dl id='pS8fC'><fieldset id='pS8fC'></fieldset></dl></div>
                          • <tfoot id='pS8fC'></tfoot>