Sign In
Typed XML in SQL Server 2005
Denis Ruckebusch's blog on typed XML in SQL Server 2005.
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
DML
Schema Collections
Static Typing
Thoughts and digressions
XSD
Archive
Archives
October 2007
(1)
April 2007
(1)
March 2007
(3)
January 2007
(2)
December 2006
(1)
November 2006
(2)
September 2006
(1)
August 2006
(2)
June 2006
(2)
May 2006
(3)
April 2006
(2)
February 2006
(1)
December 2005
(1)
October 2005
(1)
September 2005
(6)
August 2005
(2)
July 2005
(4)
June 2005
(7)
MSDN Blogs
>
Typed XML in SQL Server 2005
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Typed XML in SQL Server 2005
Moving on
Posted
over 5 years ago
by
MSDNArchive
1
Comments
I'm over 2 months late in writing this post. please forgive me for the delay, especially those of you who were nice enough to leave comments and questions and expected a response. This is my last posting on my "Typed XML" blog. After almost 9 years at...
Typed XML in SQL Server 2005
Silent XQuery failures
Posted
over 5 years ago
by
MSDNArchive
4
Comments
A newsgroup post I read earlier today reminded me that there are cases where failure to get the expected result when using XQuery can sometimes be difficult to diagnose. Here’s what the poster was doing declare @xml xml set @xml = '<root><test><...
Typed XML in SQL Server 2005
Stardust memories
Posted
over 5 years ago
by
MSDNArchive
The famous Stardust hotel and casino was torn down today . I was fond of the place since this was the hotel I stayed at when I first visited Vegas in the mid nineties. During our most recent trip to Nevada last summer my wife and I made sure we stopped...
Typed XML in SQL Server 2005
Mixed content (part 3)
Posted
over 5 years ago
by
MSDNArchive
1
Comments
It’s been a few weeks since my last post about mixed content so let’s pick up right where we left off. This time we will look at DML operations on mixed content. We’ll keep using the XML schema as well as the table I created in the first post of this...
Typed XML in SQL Server 2005
A new SQL CLR blog
Posted
over 5 years ago
by
MSDNArchive
One of my colleagues, Brad Richards just started blogging about SQL CLR performance. If you use SQL CLR I strongly suggest that you take a look at this blog . Brad is very knowledgeable about performance and you're likely to learn some very valuable information...
Typed XML in SQL Server 2005
Mixed content (part 2)
Posted
over 5 years ago
by
MSDNArchive
1
Comments
Following last week's introduction to the concept of mixed content, let's look in detail at a validated XML instance with mixed content. Taking a look at the children nodes of the <letter> element Let’s reuse the instance we stored in...
Typed XML in SQL Server 2005
Mixed content (part 1 of many)
Posted
over 5 years ago
by
MSDNArchive
4
Comments
I started working on this two days ago. I quickly realized that when I’m done I’ll most likely have material for multiple posts. My original plan was to finish the article in the next few days, and then publish it as several posts over time. However I...
Typed XML in SQL Server 2005
xsi:nil magic (part 2/2)
Posted
over 6 years ago
by
MSDNArchive
Last time we looked at what happens to the xsi:nil attributes when replacing the value of a simply typed element. In this post, we’re going to look at complex types. First let’s create a schema collection with complex types and elements. CREATE...
Typed XML in SQL Server 2005
xsi:nil magic (part 1/2)
Posted
over 6 years ago
by
MSDNArchive
1
Comments
A few months ago I wrote a post about the interesting behavior of the xsi:type attribute . Today we’re going to look at his no so distant relative xsi:nil. But first let’s do a quick recap. Any element can be made nillable by adding the attribute nillable...
Typed XML in SQL Server 2005
About my article in SQL Server Standard Magazine
Posted
over 6 years ago
by
MSDNArchive
In my previous post I mentioned the article I wrote for the September issue of SQL Server Standard Magazine. I heard of one person who was having trouble running the code samples from the article. When I received my copy of the magazine I realized the...
Typed XML in SQL Server 2005
The latest issue of SQL Server Standard magazine is all about XML.
Posted
over 6 years ago
by
MSDNArchive
3
Comments
The September issue of SQL Server Standard magazine is devoted to XML. I contributed an article where I look at ways to use XML to solve relational problems. Check it out!
Typed XML in SQL Server 2005
Complementing XSD with CHECK constraints
Posted
over 6 years ago
by
MSDNArchive
3
Comments
I was recently asked to look at a customer’s question. This person wanted to write a schema that would validate instances like the following one. <TopElement> <a> <element1 att1="data1" att2="data2"/> <an_element att1...
Typed XML in SQL Server 2005
xsi:type magic
Posted
over 6 years ago
by
MSDNArchive
3
Comments
As I said in my previous post, the past few weeks have been demanding and I had little time to spend on blog post. However I recently rediscovered an interesting behavior in typed XML DML and I felt I should make some time for a quick post. Today’s...
Typed XML in SQL Server 2005
Explaining the reasons behind some of XML datatype's limitations
Posted
over 6 years ago
by
MSDNArchive
If you use XML in SQL Server 2005, and especially if you use it in association with schemas, I suggest you read Brandon's recent blog post about the limitations that were placed on the XML datatype. Brandon is one of our developers and he's got first...
Typed XML in SQL Server 2005
If you leave me now…
Posted
over 6 years ago
by
MSDNArchive
2
Comments
A man named Vincent Ferrari is making headlines today. He called AOL’s costumer service to cancel his account and ran into a less than cooperative representative. The twist is, Vincent was taping the call and posted the recording on his blog . This...
Typed XML in SQL Server 2005
Inserting an XML instance into another even though SQL type ‘xml’ is not supported in XQuery.
Posted
over 6 years ago
by
MSDNArchive
24
Comments
Since we shipped SQL Server 2005 I have seen a few users ask if there was a simple way to insert an XML instance into another one. For simplicity’s sake, in the rest of this post I’m going to assume that all my variables contain valid XML documents (a...
Typed XML in SQL Server 2005
Restricting the contents of a typed XML column using triggers
Posted
over 6 years ago
by
MSDNArchive
A typed XML column/variable is constrained by a schema collection. That means only instances that can be validated against the schemas in the collection will be accepted. You can tighten the rules a little bit with the use of the DOCUMENT facet, which...
Typed XML in SQL Server 2005
Importing the Microsoft Office 2003 schemas into the database
Posted
over 6 years ago
by
MSDNArchive
As promised earlier I'm going to give you an example using a real-world schema. I've chosen to work with the Office 2003 schemas but I'm going to limit myself to Word and Excel. First, you need to install the schemas from here . In the T-SQL samples...
Typed XML in SQL Server 2005
Download SP1 today!
Posted
over 6 years ago
by
MSDNArchive
3
Comments
Yesterday we released our first Service Pack for SQL Server 2005 . You might remember a while back I had written a small post about being hard at work on SP1. Back then I avoided giving any details for fear of running afoul of corporate policy but since...
Typed XML in SQL Server 2005
Importing an existing XML schema into SQL Server 2005
Posted
over 6 years ago
by
MSDNArchive
12
Comments
In my last post I addressed the issue of non deterministic content models, which can be valid with respect to the W3C’s standards, but which are always rejected by SQL Server 2005. There are a few other XSD features that SQL Server 2005 doesn’t support...
Typed XML in SQL Server 2005
Fixing non deterministic schemas
Posted
over 6 years ago
by
MSDNArchive
1
Comments
If you’ve been importing XML schemas into SQL Server 2005 you might have encountered this error message XML Validation: XML instances of the content model of type or model group '…' can be validated in multiple ways and are not supported. ...
Typed XML in SQL Server 2005
Working on SP1
Posted
over 7 years ago
by
MSDNArchive
1
Comments
It's funny how I thought that with SQL Server 2005 out the door I'd have more time to spend on this blog and other long-delayed projects. Boy was I wrong! We kicked the SP1 work in high gear the minute we shipped SQL Server. I probably cannot reveal much...
Typed XML in SQL Server 2005
The long road to SQL Server 2005 ends here.
Posted
over 7 years ago
by
MSDNArchive
This blog’s been very quiet this past couple of weeks, and for a very good reason; we were all hard at work putting the finishing touches to SQL Server 2005. We RTM’ed yesterday and if you’re an MSDN subscriber you can already download it (along with...
Typed XML in SQL Server 2005
Branching
Posted
over 7 years ago
by
MSDNArchive
When I started this blog 3 months ago my sole intent was to share knowledge pertaining to the XML data type in SQL Server 2005. I didn’t think I’d write about anything else. I didn’t even think there was anything else I wanted to write about. Well, it...
Typed XML in SQL Server 2005
DML operations on multiple nodes
Posted
over 7 years ago
by
MSDNArchive
2
Comments
If you've been playing with SQL Server 2005's implementation of XQuery for a while you probably know that "delete" is the only operation that allows for multiple target nodes. For example, let's imagine that we have the following table CREATE TABLE...
Page 1 of 2 (42 items)
1
2