Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6681569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:36:18+00:00 2026-05-26T04:36:18+00:00

i have a XML schema bound to a table. however, sometimes testers piggyback and

  • 0

i have a XML schema bound to a table. however, sometimes testers piggyback and bind to this schema too. when there is this “ninja” XML table reference, any alteration to this schema is painful.

i’d like to run a query before schema altering and raise exception if the XML schema is bound to more than one table. i’ve looked at sys.sql_dependencies and few of the other sys.xml_XXXX tables, but it’s not clear how to do this in tsql. is something like this possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:36:19+00:00Added an answer on May 26, 2026 at 4:36 am

    Something like this might be helpful

    select object_name(object_id) as TableName, 
           col_name(object_id, column_id) as ColumnName
    from sys.column_xml_schema_collection_usages as U
      inner join sys.xml_schema_collections as S
        on U.xml_collection_id = S.xml_collection_id
    where S.name = 'YourXMLSchemaCollectionName'    
    

    This one is to find where the schema is used in a XML parameter.

    select object_name(object_id) 
    from sys.parameter_xml_schema_collection_usages as P
      inner join sys.xml_schema_collections as S
        on P.xml_collection_id = S.xml_collection_id
    where S.name = 'YourXMLSchemaCollectionName'    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an XML Schema that looks like this: <xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema> <xs:element name=root> <xs:complexType>
I have an XML schema file which references a urn based location. Is there
We have this XML schema: <xs:schema attributeFormDefault=unqualified elementFormDefault=qualified xmlns:xs=http://www.w3.org/2001/XMLSchema> <xs:element name=Log> <xs:complexType> <xs:sequence minOccurs=0
I currently have this XML schema : <PSC5> <POI_ORI> <CIT>LIM</CIT> </POI_ORI> </PSC5> if user
I have an XML schema, where element Calling1 is defined like this: <xsd:element name=Calling1
I have an XML schema that includes multiple addresses: <xs:element name=personal_address maxOccurs=1> <!-- address
I have a XML schema that I will need to create Java classes for.
I have an XML schema that represents a product in a DB, and I
I have seen XML Schema element with attributes containing only text but I have
I have an xml schema and csv data to generate corresponding xml files. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.