PC Review


Reply
Thread Tools Rate Thread

Converse to BulkLoad...

 
 
Daniel Bass
Guest
Posts: n/a
 
      5th Jul 2007

I've an Annotated Schema file (XSD) which describes how data is laid out in
multiple tables in SQL Server.

I've a .Net application that creates an instance of the BulkLoad COM object,
and calls the Execute method, populating my tables using the XSD with my XML
data.

Question is, how do I use the same XSD to then read that data from the
database?

Thanks for your time.
Daniel.


 
Reply With Quote
 
 
 
 
Daniel Bass
Guest
Posts: n/a
 
      5th Jul 2007
Thanks for your prompt reply.

The situation I have is that I'm using a generic "loader" which I pass XML
into, and using some XPath configuration, decide which XSD fits the XML and
loads the data into my tables. The Xml contains multiple levels and so I'll
be pushing data into parent/child/grandchild structured tables.

In my code, I also want some way of initiating a data "pull", so that on
some event, given some XSD, I'll pull the data from the database. I need the
XSD because in the compiled application I'll have no way of knowing the
table structure...

As I discuss this, I'm wondering about creating a "select" stored procedure
for each message type, which uses FOR XML to correctly format my text into
the XML I want. Then all I need is some event table which tells the compiled
application what new message I need to retrieve, which then lets me know the
sp I need to call...

What do you think?

Thanks,
Dan.


"Nicholas Paldino [.NET/C# MVP]" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> Daniel,
>
> Well, you don't really need the XSD to read the data from the database.
> You can just read the data from the field when you perform a select. You
> can call the ExecuteXmlReader on the SqlCommand to get the data (make sure
> that you use a FOR XML clause, or that you select one column, one row that
> returns text/ntext/xml data).
>
> Because you used an XSD to validate the data going in, you can assume
> that the field only contains data which conforms to that XSD. You don't
> have to worry about validating on the way out.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - (E-Mail Removed)
>
> "Daniel Bass" <(E-Mail Removed)> wrote in message
> news:%230Hf$(E-Mail Removed)...
>>
>> I've an Annotated Schema file (XSD) which describes how data is laid out
>> in multiple tables in SQL Server.
>>
>> I've a .Net application that creates an instance of the BulkLoad COM
>> object, and calls the Execute method, populating my tables using the XSD
>> with my XML data.
>>
>> Question is, how do I use the same XSD to then read that data from the
>> database?
>>
>> Thanks for your time.
>> Daniel.
>>

>
>



 
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
Re: Converse to BulkLoad... Nicholas Paldino [.NET/C# MVP] Microsoft ADO .NET 0 5th Jul 2007 03:39 PM
Re: Converse to BulkLoad... Nicholas Paldino [.NET/C# MVP] Microsoft C# .NET 0 5th Jul 2007 03:39 PM
what are examples of converse antonyms? =?Utf-8?B?emVybyB0b2xlcmFuY2U=?= Microsoft Word Document Management 1 26th Nov 2005 03:53 PM
how to make a call from contacts and use headset to converse? =?Utf-8?B?amZpc2hlcg==?= Microsoft Outlook Contacts 1 16th Jan 2005 07:56 AM
to converse a work doc. into word =?Utf-8?B?Q3VycmljdWx1bSBWaXRhZQ==?= Microsoft Word Document Management 1 21st Oct 2004 12:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:40 AM.