Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_xml_schema_rowset2

 

This is a procedure in the mssqlsystemresource database.




Syntax

create procedure sys.sp_xml_schema_rowset2
(
    @schema_name        sysname = null,
    @target_namespace   sysname = null
)
as

-- copy & pasted from version 1 of the SProc and removed checks for 1st parameter !

    select
        SCHEMACOLLECTION_CATALOGNAME    = xsv.SCHEMACOLLECTION_CATALOGNAME,
        SCHEMACOLLECTION_SCHEMANAME     = xsv.SCHEMACOLLECTION_SCHEMANAME,
        SCHEMACOLLECTIONNAME            = xsv.SCHEMACOLLECTIONNAME,
        TARGETNAMESPACEURI              = xsv.TARGETNAMESPACEURI,
        SCHEMACONTENT                   = xsv.SCHEMACONTENT

    from
        sys.spt_xml_schema_view xsv

    where
        xsv.xml_collection_id > 1 and -- skip 'sys' entry
        (@schema_name is null or xsv.schema_id = schema_id(@schema_name)) and
        (@target_namespace is null or @target_namespace = xsv.targetnamespaceuri)

    order by 1,2,3,4

 
Last revision 2008RTM
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