Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.spt_parameters_numbered_parameters

  No additional text.


Syntax

create view sys.spt_parameters_numbered_parameters
as
    select
        object_id           = s_p.object_id,
        procedure_number    = convert(smallint, -- not in sys.parameters
                                        case    -- These conditions should match the ones in sys.spt_all_procedures
                                        when o.type in ('P')                then 1
                                        when o.type in ('FN', 'TF', 'IF')   then 0
                                        else NULL
                                        end),
        name                = s_p.name,
        parameter_id        = s_p.parameter_id,
        system_type_id      = s_p.system_type_id,
        user_type_id        = s_p.user_type_id,
        "precision"         = s_p.precision,
        scale               = s_p.scale,
        -- OLEDB spec requires 0 when type size is unlimitted
        max_length          = (case s_p.max_length when -1 then 0 else s_p.max_length end),
        real_max_length     = s_p.max_length,
        is_output           = s_p.is_output,
        has_default_value   = s_p.has_default_value,
        default_value       = s_p.default_value,
        xml_collection_id   = s_p.xml_collection_id
    from
        sys.all_parameters s_p inner join
        sys.all_objects o on
            (
                s_p.object_id = o.object_id
            )

    union all

    select
        object_id           = s_npp.object_id,
        procedure_number    = s_npp.procedure_number, -- not in sys.parameters
        name                = s_npp.name,
        parameter_id        = s_npp.parameter_id,
        system_type_id      = s_npp.system_type_id,
        user_type_id        = s_npp.user_type_id,
        "precision"         = s_npp.precision,
        scale               = s_npp.scale,
        -- OLEDB spec requires 0 when type size is unlimitted
        max_length          = (case s_npp.max_length when -1 then 0 else s_npp.max_length end),
        real_max_length     = s_npp.max_length,
        is_output           = s_npp.is_output,
        has_default_value   = convert(bit, 0),  -- not in sys.numbered_procedure_parameters
        default_value       = NULL,             -- not in sys.numbered_procedure_parameters
        xml_collection_id   = NULL              -- not in sys.numbered_procedure_parameters
    from
        sys.numbered_procedure_parameters s_npp

 
Last revision 2008RTM
See also

  spt_all_procedures (View)
spt_procedures_system (View)
spt_procedures_user (View)
spt_procedure_params_managed_view (View)
spt_procedure_params_view (View)
       



News

  Query a named instance
Sybase+ASE+silent+install
SQL 2008 R2
Deprecated procedures in SQL2008
Reporting Services item-level role definitions
Create all your missing indexes
Converting datetime field
Start MSSQL Server Profiler at time
Replicating MSSQL Server views
Exploring Microsoft Sharepoint
The OLE DB provider "SQLNCLI10" for linked server indicates.
Mobile solar charger
Oracle to SQL Server replication
Cannot insert the value NULL into column
Undocumented Microsoft SQL Server 2008
VMware
Zoekmachine optimalisatie
SQL Servers hidden objects
FckEditor
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
PHP
sIFR; de combinatie tussen HTML en Flash