c# - How to create table set from several XSD in SQL Server 2012 or with VS 2012 -


is there solution in t-sql or in c# how create xml schema collection in t-sql or c#.

problem cannot use:

use database_test go create xml schema collection collection_from_xsd n' ................. text of xsd ............... go 

because have lot of xsd (about 30) having dependency among themselves. i´d like:

use database_test go  create xml schema collection collection_from_xsd n'c:\work\xsd\exange_format\vymennyformattypy.xsd' 

but throws me error

msg 2378, level 16, state 1, line 2 expected xml schema document.

so i´d ask how create schema xsd in t-sql or in c# in visual studio 2012 project. have access sql server 2012 full permission managing database, i´d prefer t-sql, if there won´t other choice use c#. database used local database of exchange format of addresses , real estates, first step populate database xml second step update database every week other xml files example attached picture of xsd , xsd summary visual studio.

thank much

full xsd scheme

xsd example

in create xml schema collection statement, don't specify filename of xsd file.

instead, copy-and-paste content of xsd file statement (and ensure xsd doesn't contain ' characters make dll statement malformed).


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -