Lorenzo Benaglia


Storie di un SQLlaro mannaro...
Home Blogs | Home | Login | Contact | My Profile | RSS | About | Cerca

Inside SQL Server 2005: T-SQL Programming

Some days ago I started to read Inside SQL Server 2005: T-SQL Programming, a great book written by my good friends Itzik Ben-Gan (who given me a free copy, thanks again ), Dejan Sarka and Roger Wolter.Yesterday coming back from work, I was reading about the XML Data Type paragraph, in particular using XML with Open Schema.Dejan describes very clearly the possibility to associate an XSD Schema to an XML column.In his code sample, he wants to store some contacts in a table. For domestic contacts,  
Leggi tutto il post...
Categoria: SQL Server
mercoledì, 25 ott 2006 Ore. 00.15

Scrivi un commento

Nome:
Blog:
E-Mail:
(l'indirizzo e-mail non verrà pubblicato, consente di essere avvertiti quando arrivano nuovi commenti a questo Post)
Codice:
Corpo:
Cookie:

Commenti

Autore: Dejan SarkaInviato il: 27 ott 2006 - 08.48
Lorenzo,

Thank you for this blog. I have just one remark. I agree with the first weakness of my code you mentioned. However, the second weakness (removing the schema binding) makes no sense. If you remove any constraint from a database, you can insert bad data.
Autore: LorenzoInviato il: 27 ott 2006 - 10.10
Hi Dejan,

> However, the second weakness (removing the schema binding) makes no sense.
I agree, but you have changed the OtherAttributes XML column from schema-validated back to well-formed. :-D

> If you remove any constraint from a database, you can insert bad data.
Exactly, but I don't remove the schema associaton to the XML Column, I simply modify the schema adding the minOccurs and maxOccurs XML Representation Attributes so the constraint remain on the OtherAttributes XML column and the values entered into the column will be validated against the schema.


Autore: ?????? ????? ?????Inviato il: 19 feb 2015 - 13.27

tanks for your website Thanks
<a href="http://www.i-sms.ir">?????? ????? ?????</a>
Autore: tarahi sitInviato il: 11 lug 2015 - 09.52
thanks u.
[url=http://www.portalsaz] tarahi sit[/url]
Autore: tarahi sitInviato il: 11 lug 2015 - 09.53
thanks u.
Autore: Electrical panelInviato il: 29 lug 2015 - 09.40
thank u.
Copyright © 2002-2007 - Blogs 2.0
dotNetHell.it | Home Page Blogs
ASP.NET 2.0 Windows 2003