M
Mat
Help!
I've just started looking into persisting data to SQL 2000 for a .net
application. I have a XML document in the form
<Data>
<Customer>
<ID>1</ID>
<Name>Cust1</Name>
<Address>
<CustId>1</CustId>
<AddressType>1</AddressType>
<Town>A Town</Town>
</Address>
<Address>
<CustId>1</CustId>
<AddressType>2</AddressType>
<Town>A Town</Town>
</Address>
</Customer>
</Data>
Within SQL There are two tables, Customer and Address, which a
relation between both on the CustomerId. CustomerId is a uniqueKey.
If there an easy way to persist the infomation to/from SQL 2000? I've
looked at datasets which are probably the key to the solution (is this
the right track?).
If so, is there anyway of getting the relationship built automatically
within dataset tables, or does this have to be automatic.
Is a dataset with an underlying schema is used, this seems to be
ignored when populating the dataset with the results from the SQL
query.
Can multiple tables /rows be updated within one transaction, as I
don't want to create a network traffic hungry application?
Finally, is there a good WEB site to get this information from? Info
seems a little hard to get on this!
Cheers,
I've just started looking into persisting data to SQL 2000 for a .net
application. I have a XML document in the form
<Data>
<Customer>
<ID>1</ID>
<Name>Cust1</Name>
<Address>
<CustId>1</CustId>
<AddressType>1</AddressType>
<Town>A Town</Town>
</Address>
<Address>
<CustId>1</CustId>
<AddressType>2</AddressType>
<Town>A Town</Town>
</Address>
</Customer>
</Data>
Within SQL There are two tables, Customer and Address, which a
relation between both on the CustomerId. CustomerId is a uniqueKey.
If there an easy way to persist the infomation to/from SQL 2000? I've
looked at datasets which are probably the key to the solution (is this
the right track?).
If so, is there anyway of getting the relationship built automatically
within dataset tables, or does this have to be automatic.
Is a dataset with an underlying schema is used, this seems to be
ignored when populating the dataset with the results from the SQL
query.
Can multiple tables /rows be updated within one transaction, as I
don't want to create a network traffic hungry application?
Finally, is there a good WEB site to get this information from? Info
seems a little hard to get on this!
Cheers,