Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.spt_sproc_columns_return_values_odbc_view

  No additional text.


Syntax

create view sys.spt_sproc_columns_return_values_odbc_view
as
    select
    -- begin (for doing joins)
        object_id                   = pro.object_id,
        schema_id                   = pro.schema_id,
        procedure_number            = pro.procedure_number,
    -- end (for doing joins)
        PROCEDURE_QUALIFIER = convert(sysname,db_name()),
        PROCEDURE_OWNER     = convert(sysname,schema_name(pro.schema_id)),
        PROCEDURE_NAME      = pro.name,
        COLUMN_NAME         = convert(sysname,
                                        case
                                        when pro.type = 'P' then '@RETURN_VALUE'
                                        else                     '@TABLE_RETURN_VALUE'
                                        end),
        COLUMN_TYPE         = convert(smallint,
                                        case
                                        when pro.type = 'P' then 5 -- SQL_RETURN_VALUE
                                        else                     3 -- SQL_RESULT_COL
                                        end),
        DATA_TYPE           = convert(smallint,
                                        case
                                        when pro.type = 'P' then 4
                                        else                     NULL
                                        end),
        TYPE_NAME           = convert(sysname,
                                        case
                                        when pro.type = 'P' then 'int'
                                        else                     'table'
                                        end),
        "PRECISION"         = convert(int,
                                        case
                                        when pro.type = 'P' then 10
                                        else                     0
                                        end),
        "LENGTH"            = convert(int,
                                        case
                                        when pro.type = 'P' then 4
                                        else                     0
                                        end),
        SCALE               = convert(smallint,0),
        RADIX               = convert(smallint,
                                        case
                                        when pro.type = 'P' then 10
                                        else                     0
                                        end),
        NULLABLE            = convert(smallint,0),
        REMARKS             = convert(varchar(254),
                                        case
                                        when pro.type = 'P' then NULL
                                        else                     'Result table returned by table valued function'
                                        end),
        COLUMN_DEF          = convert(nvarchar(4000), NULL),
        SQL_DATA_TYPE       = convert(smallint,
                                        case
                                        when pro.type = 'P' then 4
                                        else                     NULL
                                        end),
        SQL_DATETIME_SUB    = convert(smallint,null),
        CHAR_OCTET_LENGTH   = convert(int,null),
        ORDINAL_POSITION    = convert(int,0),
        IS_NULLABLE         = convert(varchar(254),'NO'),
        SS_TYPE_CATALOG_NAME                 = convert(sysname,null),
        SS_TYPE_SCHEMA_NAME                  = convert(sysname,null),
        SS_UDT_CATALOG_NAME                  = convert(sysname,null),
        SS_UDT_SCHEMA_NAME                   = convert(sysname,null),
        SS_UDT_ASSEMBLY_TYPE_NAME            = convert(nvarchar(4000),null) collate Latin1_General_BIN,
        SS_XML_SCHEMACOLLECTION_CATALOG_NAME = convert(sysname,null),
        SS_XML_SCHEMACOLLECTION_SCHEMA_NAME = convert(sysname,null),
        SS_XML_SCHEMACOLLECTION_NAME         = convert(sysname,null),
        SS_DATA_TYPE                         = convert(tinyint, -- Info here is for backward compatibility - SQL 6.5
                                                case
                                                when pro.type = 'P' then 56
                                                else                     0
                                                end)
    from
        sys.spt_all_procedures pro

    where
        pro.type in ('P', 'TF', 'IF') -- 'FN' case is included in spt_sproc_columns_odbc_view

 
Last revision 2008RTM
See also

  sp_sproc_columns (Procedure)
sp_sproc_columns_100 (Procedure)
sp_sproc_columns_90 (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