<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. 如何获取存储过程参数的详细信息?

        时间:2023-10-25

          <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')
                  

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

                  上一篇:在 BEGIN/END TRANSACTION 中执行存储过程 下一篇:LINQ 和存储过程之间的性能差异

                  相关文章

                  1. <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>
                  2. <small id='15wDQ'></small><noframes id='15wDQ'>

                  3. <tfoot id='15wDQ'></tfoot>
                  4. <legend id='15wDQ'><style id='15wDQ'><dir id='15wDQ'><q id='15wDQ'></q></dir></style></legend>

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