Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is It difficult to create a table in SQL Server using A Dataset???

Status
Not open for further replies.

hneal98

Programmer
Aug 13, 2002
1,637
US
Hi All,

I would like to create tables in SQL Server based on a dataset created from XML and XSD. Not sure how to go about it though. I am assuming I would have to use a For Each loop to go through the tables, columns etc. Haven't worked much with XML.

Any examples would be greatly appreciated.

Thanks in adavanced.
 
While this is great information, not sure how it relates to XML and XSD. Any thoughts about that?
 
This should be pretty straight forward.

<code>
Dim filename As String
Dim dsmylist As New DataSet("project")
filename = "filename.xml"
dsmylist.ReadXml(filename)
</code>
once read into a data set you should be able to use
insert into sql command.


if it is to be it's up to me
 
How does that relate to creating a table on SQL Server from XML Dataset?
 
Once you have read the XML file to a DataSet, the field is wide open to manipulate it as you need. Which includes create new SQL tables.
 
Thanks for your response.

How do I set up the relationships, field sizes, etc. from the tables in the datasets, in SQL?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top