PC Review


Reply
Thread Tools Rate Thread

DataRow to XML

 
 
nashak@hotmail.com
Guest
Posts: n/a
 
      24th Jan 2005
Hello,

I am creating a datarow (new or existing) in my data-tier and passing
it to my business tier where it is filled with data and then passed
back to data-tier to be inserted into the table.

I need to keep original and updated versions of the datarow in xml
format. Just need the datarow in xml format. So basically I need two
strings - string1 containing data from initial state of datarow and
string2 containing data from updated state of datarow.

I think that xml read/write can only be done via datasets and not via
datarow. Can anyone provide any pointers?

Thanks

 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      24th Jan 2005
Nashak,

Although I don't see the sence does this article describe in my idea what
you are looking for.
http://msdn.microsoft.com/msdnmag/is...fig=true#fig10

That is not Adonet by the way, when you want to write datarows than you
should use the datatable and the dataset to access those.

Cor


 
Reply With Quote
 
Sahil Malik
Guest
Posts: n/a
 
      25th Jan 2005
Nashak,

What database are you using? can you just do For XML? (Sql Server)

- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik



<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I am creating a datarow (new or existing) in my data-tier and passing
> it to my business tier where it is filled with data and then passed
> back to data-tier to be inserted into the table.
>
> I need to keep original and updated versions of the datarow in xml
> format. Just need the datarow in xml format. So basically I need two
> strings - string1 containing data from initial state of datarow and
> string2 containing data from updated state of datarow.
>
> I think that xml read/write can only be done via datasets and not via
> datarow. Can anyone provide any pointers?
>
> Thanks
>



 
Reply With Quote
 
nashak@hotmail.com
Guest
Posts: n/a
 
      25th Jan 2005
Hello,

This is for SQl Server 2000.

What is For XML?

Thanks,

 
Reply With Quote
 
Sahil Malik
Guest
Posts: n/a
 
      26th Jan 2005
For XML is something like this ..

Select * from NashaksTable For XML Auto.

Run it .. and see the results for a nice surprise :-)

BTW, once you do - also check out SqlXml, SqlXmlDataAdapter, and of course
SqlCommand.ExecuteXmlQuery.

- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik



<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> This is for SQl Server 2000.
>
> What is For XML?
>
> Thanks,
>



 
Reply With Quote
 
Sahil Malik
Guest
Posts: n/a
 
      26th Jan 2005
And since you do have my book handy .. check out Chapter #12

- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> This is for SQl Server 2000.
>
> What is For XML?
>
> Thanks,
>



 
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
Is DataRow[string] uses DataRow[int] and DataRow[int] much efficient than DataRow[string]? Ryan Liu Microsoft C# .NET 3 2nd Feb 2008 06:14 AM
Distinguish 2 situations when a DataRow in Detached state; Or why not make the data row intact after being added then removed from a dataRow collection? Ryan Liu Microsoft Dot NET 0 7th Jun 2006 03:04 PM
Distinguish 2 situations when a DataRow in Detached state; Or why not make the data row intact after being added then removed from a dataRow collection? Ryan Liu Microsoft C# .NET 0 7th Jun 2006 02:14 AM
create new DataRow, init fields, then set DataRow to UnChanged? Les Caudle Microsoft ADO .NET 2 4th May 2004 05:42 PM
Re: Casting Data.Datarow to a strongly typed datarow CJ Taylor Microsoft VB .NET 4 21st Apr 2004 08:09 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:54 AM.