Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.spt_procedure_params_return_values_managed_v

  No additional text.


Syntax

create view sys.spt_procedure_params_return_values_managed_v
as
    select -- SQL Stored-Procedure/SQL Table-valued-Function/SQL Inlined-table-valued-Function
    -- begin (for doing joins)
        object_id                   = o.object_id,
        schema_id                   = o.schema_id,
        procedure_number            = case
                                        when o.type = 'P' then null -- should be replaced by user of the view
                                        else                   0    -- all UDFs have number of 0
                                      end,
        type                        = o.type,
    -- end (for doing joins)
        PROCEDURE_CATALOG           = db_name(),
        PROCEDURE_SCHEMA            = schema_name(o.schema_id),
        PROCEDURE_NAME              = convert(nvarchar(134),o.name),
        PARAMETER_NAME              = convert(sysname,
                                                case
                                                when o.type = 'P' then '@RETURN_VALUE'
                                                else                   '@TABLE_RETURN_VALUE'
                                                end),
        ORDINAL_POSITION            = convert(smallint,0),
        PARAMETER_TYPE              = convert(smallint, 4), --DBPARAMTYPE_RETURNVALUE
        PARAMETER_HASDEFAULT        = convert(tinyint, 0),
        PARAMETER_DEFAULT           = convert(nvarchar(255),null),
        IS_NULLABLE                 = convert(bit,0),
        DATA_TYPE                   = convert(smallint,
                                                case
                                                when o.type = 'P' then 3 -- DBTYPE_I4
                                                else                   0 -- DBTYPE_EMPTY
                                                end),
        CHARACTER_MAXIMUM_LENGTH    = convert(int,null),
        CHARACTER_OCTET_LENGTH      = convert(int,null),
        NUMERIC_PRECISION           = convert(smallint,
                                                case
                                                when o.type = 'P' then 10
                                                else                   null
                                                end),
        NUMERIC_SCALE               = convert(smallint,null),
        DESCRIPTION                 = convert(nvarchar(50),
                                                case
                                                when o.type = 'P' then null
                                                else                   N'Result table returned by table valued function'
                                                end),
        TYPE_NAME                   = convert(sysname,
                                                case
                                                when o.type = 'P' then N'int'
                                                else                   N'table'
                                                end),
        LOCAL_TYPE_NAME             = convert(sysname,
                                                case
                                                when o.type = 'P' then N'int'
                                                else                   N'table'
                                                end),
        XML_CATALOGNAME             = convert(sysname,null),
        XML_SCHEMANAME              = convert(sysname,null),
        XML_SCHEMACOLLECTIONNAME    = convert(sysname,null),
        UDT_CATALOG                 = convert(sysname,null),
        UDT_SCHEMA                  = convert(sysname,null),
        UDT_NAME                    = convert(sysname,null),
        TYPE_ID                     = convert(int,null),
        DB_ID                       = convert(int,null),
        ASSEMBLY_ID                 = convert(int,null),
        UDT_BOUNDCLASS              = convert(sysname,null) collate Latin1_General_BIN,
        ASSEMBLY_NAME               = convert(sysname,null),
        ASSEMBLY_VERSION            = convert(sysname,null),
        ASSEMBLY_PUBLICKEY          = convert(varbinary(8000),null),
        ASSEMBLY_CULTUREINFO        = convert(sysname,null),
        ASSEMBLY_PERMISSIONS        = convert(int,null),
        UDT_METADATA                = convert(varbinary(8000),null),
        PROG_ID                     = convert(sysname,null)

    from
        sys.all_objects o -- we can not use sys.procedures, because it doesn't include system procedures :-(

    where
        o.type in ('P', 'TF', 'if')

 
Last revision
See also

  sp_procedure_params_managed (Procedure)
       



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