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

  • <tfoot id='SJL7u'></tfoot>
    <legend id='SJL7u'><style id='SJL7u'><dir id='SJL7u'><q id='SJL7u'></q></dir></style></legend>

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

      <bdo id='SJL7u'></bdo><ul id='SJL7u'></ul>
      1. 如何获取存储过程参数的详细信息?

        How to get stored procedure parameters details?(如何获取存储过程参数的详细信息?)

          <small id='9f2eF'></small><noframes id='9f2eF'>

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

              <tbody id='9f2eF'></tbody>
            <legend id='9f2eF'><style id='9f2eF'><dir id='9f2eF'><q id='9f2eF'></q></dir></style></legend>
              <bdo id='9f2eF'></bdo><ul id='9f2eF'></ul>

                1. 本文介绍了如何获取存储过程参数的详细信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在哪里可以找到有关存储过程参数的信息?在我的情况下,我只需要知道给定存储过程的输入参数.

                  Where can I find information about stored procedure parameters? In my situation I need to know only the input parameters of given store procedure.

                  sys.objects 中,只有关于过程的共同细节.在 sys.sql_modules 中,我可以提取整个过程的 SQL 文本.

                  In the sys.objects there is only common details about the procedure. In sys.sql_modules I can extract the whole SQL text of a procedure.

                  作为(在 SQL Server Management Studio 中),我可以在选择过程名称时使用 ALT+F1 在表格视图中提取有关参数的信息.我希望有一些地方可以以这种方式提取输入参数的详细信息.

                  As (in SQL Server Management studio) I am able to extract information about the parameters in tabular view using ALT+F1 when selecting the procedure name. I hope there is some place from which I can extract input parameters details in that way.

                  推荐答案

                  select  
                     'Parameter_name' = name,  
                     'Type'   = type_name(user_type_id),  
                     'Length'   = max_length,  
                     'Prec'   = case when type_name(system_type_id) = 'uniqueidentifier' 
                                then precision  
                                else OdbcPrec(system_type_id, max_length, precision) end,  
                     'Scale'   = OdbcScale(system_type_id, scale),  
                     'Param_order'  = parameter_id,  
                     'Collation'   = convert(sysname, 
                                     case when system_type_id in (35, 99, 167, 175, 231, 239)  
                                     then ServerProperty('collation') end)  
                  
                    from sys.parameters where object_id = object_id('MySchema.MyProcedure')
                  

                  这篇关于如何获取存储过程参数的详细信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Maximum stored procedure, function, trigger, or view nesting level exceeded (limit 32)(超出最大存储过程、函数、触发器或视图嵌套级别(限制 32))
                  How to View Oracle Stored Procedure using SQLPlus?(如何使用 SQLPlus 查看 Oracle 存储过程?)
                  How to debug stored procedure in VS 2015?(如何在 VS 2015 中调试存储过程?)
                  Set the variable result, from query(设置变量结果,来自查询)
                  What is dynamic SQL?(什么是动态 SQL?)
                  Mysql - How to quit/exit from stored procedure(Mysql - 如何退出/退出存储过程)

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

                      <tfoot id='15wDQ'></tfoot>
                    • <legend id='15wDQ'><style id='15wDQ'><dir id='15wDQ'><q id='15wDQ'></q></dir></style></legend>
                        <tbody id='15wDQ'></tbody>

                        <bdo id='15wDQ'></bdo><ul id='15wDQ'></ul>