SQLXML : How to Check if an XML Schema Already Exists
1: SELECT * 2: FROM sys.xml_schema_collections 3: WHERE name='NameOfSchema' Related posts: SQLXML : How to Create an XML Schema ... SQLXML : How to List Schema Elements and Attributes ... SQLXML : How...
View ArticleSQLXML : How to Create an XML Schema
The following is an example of how to create an XML Schema in SQL Server. 1: -- DROP IF EXISTS 2: IF EXISTS (SELECT 1 3: FROM sys.xml_schema_collections 4: WHERE name='SampleSchema') 5: DROP XML SCHEMA...
View ArticleSQLXML : How to List Schema Elements and Attributes
1: SELECT 2: sys.xml_schema_collections.xml_collection_id AS CollectionID, 3: sys.xml_schema_collections.name AS SchemaName, 4: sys.xml_schema_elements.name AS ElementName, 5:...
View ArticleSQLXML : How to List Columns That Have the XML Data Type
1: -- this lists the table catalog, table name, 2: -- column name, and data type 3: SELECT 4: TABLE_CATALOG, 5: TABLE_NAME, 6: COLUMN_NAME, 7: DATA_TYPE 8: FROM 9: INFORMATION_SCHEMA.COLUMNS 10: WHERE...
View ArticleSQLXML : How to Work With XML Elements (or Nodes) in SQL Server
Assume this is your XML snippet Note that the examples below show how you can manipulate XML nodes – but most operations require singleton values. Ie, the changes must affect one and only one node....
View ArticleSQL Server XML Red Gate Ebook, XQuery Labs
Jacob Sebastian is a SQL Server XML Guru! Check out his collection for XQUery Labs. This is the first 12 of his series, and right now he has 43 and counting: XQuery Sample Scripts * XQuery Lab 1 –...
View ArticleGeocode Locations Using Google Maps v3 API and SSIS
I wanted to do a cool experiment on SSIS that I haven’t tried before. I am really interested in this whole mapping component on SSRS, and I know that most likely the biggest challenge of companies is...
View Article