PC Review


Reply
Thread Tools Rate Thread

Create SQL Tables From an XML Schema

 
 
=?Utf-8?B?RG9scGggTGFyc29u?=
Guest
Posts: n/a
 
      28th Jun 2005
Hello,

Does anyone know how to create a SQL table from an XML schema
programmatically? I have an xml dataset that needs to update the SQL
structure. I have no problem going from SQL to XML. But what if I want to
go the other way?

Thanks,

Dolph
 
Reply With Quote
 
 
 
 
Francois Bonin [MVP]
Guest
Posts: n/a
 
      28th Jun 2005
You can use SQLXML Bulkload to achieve that.
Check out this article:
http://msdn.microsoft.com/XML/Buildi...exchsqlxml.asp

HTH
Cois
"Dolph Larson" <(E-Mail Removed)> wrote in message
news:F3A9C289-559F-4E5F-B968-(E-Mail Removed)...
> Hello,
>
> Does anyone know how to create a SQL table from an XML schema
> programmatically? I have an xml dataset that needs to update the SQL
> structure. I have no problem going from SQL to XML. But what if I want
> to
> go the other way?
>
> Thanks,
>
> Dolph



 
Reply With Quote
 
Andrew Conrad
Guest
Posts: n/a
 
      1st Jul 2005
See the SchemaGen option for SqlXmlBulkLoad. This however requires the XSD
to be annotated with relational information.

In Sql Server 2005, SSIS will support creating tables from an XSD based on
the existing DataSet functionality:

http://www.microsoft.com/downloads/d...51f-f8df-46f0-
b4ac-fbe567277722&displaylang=en


Andrew Conrad
Microsoft Corp

 
Reply With Quote
 
=?Utf-8?B?RG9scGggTGFyc29u?=
Guest
Posts: n/a
 
      1st Jul 2005
Thanks. I was hoping that there was a way to create sql tables from using
ADO.Net. I know about the SQLXMLBulkLoad. I decided to write a generic
method to generate SQL statements by looping through the dataset. I needed
to create tables for other databases as well as SQL Server. i.e. MS Access,
Oracle. etc.

Thanks Again,

Dolph

""Andrew Conrad"" wrote:

> See the SchemaGen option for SqlXmlBulkLoad. This however requires the XSD
> to be annotated with relational information.
>
> In Sql Server 2005, SSIS will support creating tables from an XSD based on
> the existing DataSet functionality:
>
> http://www.microsoft.com/downloads/d...51f-f8df-46f0-
> b4ac-fbe567277722&displaylang=en
>
>
> Andrew Conrad
> Microsoft Corp
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get schema from a table or all tables in a db msnews.microsoft.com Microsoft Access Database Table Design 4 12th Sep 2006 09:27 PM
Get schema from a table or all tables in a db msnews.microsoft.com Microsoft Access 4 12th Sep 2006 09:27 PM
can't create schema using .adp (or transfertext method renderred useless without schema) kreplech@gmail.com Microsoft Access 1 23rd Jun 2006 09:49 PM
schema tables =?Utf-8?B?bmJvaGFuYQ==?= Microsoft Dot NET Framework 0 2nd Aug 2005 05:32 AM
Is there a way to get the schema of the database tables using VB? joan@de.arc Microsoft Access 2 12th Nov 2003 04:10 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:27 PM.