PC Review


Reply
Thread Tools Rate Thread

Inserting a dataset

 
 
John
Guest
Posts: n/a
 
      27th Dec 2005
Hi

How can I insert a dataset into an sql table?

Thanks

Regards


 
Reply With Quote
 
 
 
 
Chris Johnson
Guest
Posts: n/a
 
      27th Dec 2005
Start here with the MSDN information to see if that helps you. It may at
least narrow your question when, after trying the examples, you run into any
stumbling blocks.

SQL DataAdaptor:
http://msdn.microsoft.com/library/de...classtopic.asp

Let us know if you have further questions!
chrisj

"John" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi
>
> How can I insert a dataset into an sql table?
>
> Thanks
>
> Regards
>
>



 
Reply With Quote
 
 
 
 
W.G. Ryan - MVP
Guest
Posts: n/a
 
      28th Dec 2005
That's going to depend on how the datatables inside the dataset were
populated. The key is rowstate and if it's not changed (Modified, Deleted,
Added) then you're going to have to loop through the rows and fire your sql
statements based on those values.

Where is the data coming from in the first place? DTS might be a much better
way to go about doing this if at all possible.
"John" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi
>
> How can I insert a dataset into an sql table?
>
> Thanks
>
> Regards
>
>



 
Reply With Quote
 
John
Guest
Posts: n/a
 
      28th Dec 2005
The dataset would have new data only i.e. no conflict with existing keys and
also it only needs to be appended. The dataset insert is to be done within a
webmethod which gets the dataset as parameter from the calling procedure.

Thanks

Regards

"W.G. Ryan - MVP" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> That's going to depend on how the datatables inside the dataset were
> populated. The key is rowstate and if it's not changed (Modified,
> Deleted, Added) then you're going to have to loop through the rows and
> fire your sql statements based on those values.
>
> Where is the data coming from in the first place? DTS might be a much
> better way to go about doing this if at all possible.
> "John" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi
>>
>> How can I insert a dataset into an sql table?
>>
>> Thanks
>>
>> Regards
>>
>>

>
>



 
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
Inserting Multi Table Dataset into Dataset Beach Bum Microsoft ADO .NET 1 10th Jun 2008 05:48 PM
Inserting a Buttion for Inserting pictures =?Utf-8?B?TmlhZ2VyYSBDb2xsZWdlIFN0dWRlbnQ=?= Microsoft Access Forms 0 4th Apr 2006 05:29 AM
Inserting rows in dataset bound to XmlDataDocument - Framework bug? Troy McLure Microsoft Dot NET Framework 0 29th Jul 2004 11:22 PM
inserting a future date (like inserting savedate, printdate etc) Mike Microsoft Word Document Management 4 1st May 2004 12:56 AM
Inserting a dataset into a SQL dB Edh Microsoft ADO .NET 0 30th Jun 2003 05:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:06 AM.