Re: How to insert data from strongly typed dataset into database (jbx01)

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi Bill, I thank you very much for help and quick response, appreciate
it!
Please use halbrag@xxxxxxxx for reply next time - will reach me
directly.

I realized I should be more precise. So here it goes. I had an XSD
schema which I used to generate a database in my MS SQL Server 2000 (I
used a freebee tool that accepts XSD file and drops/recreates the
database based on the XSD schema, xsd2db.exe). I'm receiving XML files
(actually they are XML strings passed to my URL, using GET), and my
intent is to easy-way store it in my database. So using Microsoft
xsd.exe I generated a strongly typed DataSet class, which added it to
my website application .NET C# project. Next, I populate a strongly
typed dataset instance from the XMLDocument instance created off an XML
string. So there should be a full schema match between the XML stream,
the dataset and the database.

Now, the question is: having the dataset populated this way how do I go
about inserting the (XML) data into my database, in a possible painless
way, letting the technology do most of the work.

A critical point to make: I may need to change XSD multiple times, or
re-apply the solution to many applications, each with a different XSD,
so writing as little code as possible is critical in the solution.

Not to sound too negative, but what looked like a Microsoft promise
with an introduction of a concept of Strongly Typed Datasets is bit
underdeveloped. One would expect a simple method Save or Insert.

Jacek B.

.



Relevant Pages

  • RE: XML metadata?
    ... we cannot export everything from the database. ... We can create a typed DataSet, fill the typed DataSet with data in ... And then write data or schema to XML. ... For more information about WriteXml and WriteXmlSchema method, ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Im wondering if this would be the proper application of XML, XSD and a datagrid
    ... I was debating storing this data in the database with like a StoreMaster ... table and a StoreBooks table but I wantto learn about storing it in XML ... Let's say there are 1000 stores with various amounts of books. ... back to the database but I'm learning alot about XML and XSD right now. ...
    (microsoft.public.dotnet.languages.csharp)
  • xsd question
    ... I am doing a bulk load and an element name in the xsd and xml is named ... differently in the database. ... I can NOT change the database field or ... Can I do anything with ehw XSD? ...
    (microsoft.public.dotnet.xml)
  • how to use get to embed schema into WSDL
    ... XmlDataDocument instead of a typed dataset, not sure), and then returns ... The XML returned by GetOrdersshows up in the generated WSDL as ... We have XSD schema file for this XML. ... Is there any way that I can get the web service client to ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Generating XML Schema for SQL Server Table
    ... Sql Server can provide XML based information that you can use ... I know nothing about my database at all, ... can get the field count and then get the column name and column type and ... I believe that if you have a strongly typed dataset then you can get ...
    (microsoft.public.dotnet.general)