PC Review


Reply
Thread Tools Rate Thread

C#.NET - LoadDataSet Does Not Generate XML Data

 
 
Jason
Guest
Posts: n/a
 
      4th May 2011
I have been searching the web but cannot seem to find an answer to
this question. I'm hoping that someone here can help me with this...
Thanks in advance...

I have the following snippet of code:

---------------------------------------------------------------------------------------
strCompany = "select * from Company ";
db2.LoadDataSet(db.GetSqlStringCommand(strCompany), ds, "Company");
---------------------------------------------------------------------------------------

The code will create a dataSet for me based on the information in the
Company table...no problem. The problem comes from the fact that one
of the columns in the Company table has no data in it...all of the
data in this particular column is NULL.

So, when the dataSet is created, this column (i.e.: Address) is
missing from the dataSet. When I try to generate an Xml document from
this dataSet, there is no <Address> element in the Xml.

Is there a way to make this .LoadDataSet (or some other method)
generate data so that there will be an <Address> element when I go to
create the Xml file?

What is the best way to do this?

Thanks So Much...
-Jason
 
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
generate a data form Thanh-Nhan Le Microsoft ADO .NET 1 12th Aug 2008 06:41 PM
generate a random number and use if function to generate new data =?Utf-8?B?RG9nZG9jMTE0Mg==?= Microsoft Excel Worksheet Functions 4 26th Apr 2006 03:44 AM
Data->Generate Dataset|Preview Data Raoul James Microsoft ADO .NET 1 24th Nov 2005 09:27 PM
Microsoft Enterprise Library - LoadDataSet - Stored Procedure Vivek Sharma Microsoft C# .NET 1 7th Jul 2005 04:49 PM
Generate Data =?Utf-8?B?U2F6YWJp?= Microsoft Access 1 13th Aug 2004 06:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:43 AM.