PC Review


Reply
Thread Tools Rate Thread

Adding new rows

 
 
maz
Guest
Posts: n/a
 
      9th Aug 2007
Is there anyway to add rows to a dataset/datatable without having to
populate the object with rows from the source table????

It seems to be pretty daunting in terms of memory/processing
requirements to have to fill the dataset with all rows from a source
and then make additions.

 
Reply With Quote
 
 
 
 
Miha Markic
Guest
Posts: n/a
 
      9th Aug 2007
No, you don't need to fill it beforhand.
What makes you think you have to fill it before adding new rows?

--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

"maz" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is there anyway to add rows to a dataset/datatable without having to
> populate the object with rows from the source table????
>
> It seems to be pretty daunting in terms of memory/processing
> requirements to have to fill the dataset with all rows from a source
> and then make additions.
>


 
Reply With Quote
 
maz
Guest
Posts: n/a
 
      9th Aug 2007
On Aug 9, 11:15 am, "Miha Markic" <miha at rthand com> wrote:
> No, you don't need to fill it beforhand.
> What makes you think you have to fill it before adding new rows?
>
> --
> Miha Markic [MVP C#, INETA Country Leader for Slovenia]
> RightHand .NET consulting & developmentwww.rthand.com
> Blog:http://cs.rthand.com/blogs/blog_with_righthand/
>
> "maz" <hamdoun...@lebcanbank.com> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
> > Is there anyway to add rows to a dataset/datatable without having to
> > populate the object with rows from the source table????

>
> > It seems to be pretty daunting in terms of memory/processing
> > requirements to have to fill the dataset with all rows from a source
> > and then make additions.- Hide quoted text -

>
> - Show quoted text -


The examples given in a text I have called the fill method. That's
what made me think so, which I found to be extremely unreasonable!

Note that the table I want to add rows to already has existing rows.

if u have references to web resources that may help please provide
them.

Thanks

 
Reply With Quote
 
William Vaughn
Guest
Posts: n/a
 
      9th Aug 2007
You can do a schema-only query or construct the DataTable in code and
populated it as needed.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant, Dad, Grandpa
Microsoft MVP
INETA Speaker
www.betav.com
www.betav.com/blog/billva
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
-----------------------------------------------------------------------------------------------------------------------

"maz" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Aug 9, 11:15 am, "Miha Markic" <miha at rthand com> wrote:
>> No, you don't need to fill it beforhand.
>> What makes you think you have to fill it before adding new rows?
>>
>> --
>> Miha Markic [MVP C#, INETA Country Leader for Slovenia]
>> RightHand .NET consulting & developmentwww.rthand.com
>> Blog:http://cs.rthand.com/blogs/blog_with_righthand/
>>
>> "maz" <hamdoun...@lebcanbank.com> wrote in message
>>
>> news:(E-Mail Removed)...
>>
>>
>>
>> > Is there anyway to add rows to a dataset/datatable without having to
>> > populate the object with rows from the source table????

>>
>> > It seems to be pretty daunting in terms of memory/processing
>> > requirements to have to fill the dataset with all rows from a source
>> > and then make additions.- Hide quoted text -

>>
>> - Show quoted text -

>
> The examples given in a text I have called the fill method. That's
> what made me think so, which I found to be extremely unreasonable!
>
> Note that the table I want to add rows to already has existing rows.
>
> if u have references to web resources that may help please provide
> them.
>
> 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
Adding my own rows to a Union Query without adding another table? PaulSchrum Microsoft Access Queries 3 15th Feb 2011 08:28 PM
adding some rows in the middle of adding some other rows =?Utf-8?B?SmFuaXM=?= Microsoft Excel Programming 3 4th Oct 2007 03:20 AM
Adding rows to a data table: Rows do not show up =?Utf-8?B?dnZlbms=?= Microsoft VB .NET 2 10th Oct 2006 12:07 AM
Adding Rows offsets to working rows across two worksheets =?Utf-8?B?VG9t?= Microsoft Excel Setup 3 30th Jul 2006 07:54 PM
How to prevent drawing DataGrid rows while adding rows? =?Utf-8?B?VFQgKFRvbSBUZW1wZWxhZXJlKQ==?= Microsoft C# .NET 2 6th Apr 2005 04:51 PM


Features
 

Advertising
 

Newsgroups
 


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