PC Review


Reply
Thread Tools Rating: Thread Rating: 2 votes, 1.00 average.

What is the best way to update a DataTable row column using a multipart primary key?

 
 
BStorm
Guest
Posts: n/a
 
      25th Feb 2004
If I have a DataTable with a multipart primary key and want to update a
column based upon a value for that key, what is the most efficient way to do
this?

For example, if I have an OrderDtl table with a primary key consisting of an
OrderNo and OrderDtl and wish to update the OrderAmt colum when I have
values for OrderNo and OrderDtl.


 
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
How is System.Data.DataTable.Load() determining whether a column is a primary key? Reece Laurie Microsoft ADO .NET 1 18th Nov 2009 11:14 AM
Howto remove a primary key column in a datatable? =?Utf-8?B?TWFydGlu?= Microsoft ASP .NET 11 1st Dec 2004 03:14 AM
Cannot update DataTable containing a Column expression Andrea Biagini Microsoft ADO .NET 1 29th Oct 2004 11:36 AM
Updating a DataTable column row using values for a primary key? BStorm Microsoft C# .NET 1 26th Feb 2004 02:41 PM
Update entire column in datatable Rajesh Patel Microsoft ADO .NET 3 13th Oct 2003 06:12 PM


Features
 

Advertising
 

Newsgroups
 


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