• Eric Inman (7/3/2009)


    Why is this a sql centric solution? Would performance be further improved with some C# code on an application server doing the xml heaving lifting?

    If you're interested in guaranteeing data stored in the database is valid you have to use the database engine to check it, just like any other database-side constraints. You can always check data in client apps or in the middle tier before it gets stored in the database, but there's no guarantee that these methods of enforcing constraints on data can't be circumvented (by a DBA with direct table access, for instance).