PC Review


Reply
Thread Tools Rate Thread

Dataset Merge problem

 
 
hammad_awanNOSPAM@hotmail.com
Guest
Posts: n/a
 
      31st Jul 2003
Hello,

I have an issue with respect to the DataSet Merge function. I have a
function defined that takes a dataset as a parameter and is called in two
different scenarios, locally and remotely. Inside this function I do the
following:

DataSet dsModified = ds.GetChanges(DataRowState.Modified);
if (dsModified != null)
{
// ... Update the database
ds.Merge(dsModified)
}

If I call this function locally, it works perfectly. However, if this
function is called remotely for the exact same scenario, the function throws
an exception when Merge is called. The only difference in the two calls is
that locally, the dataset is passed by reference (because it's an object),
whereas remotely, the same dataset is serialized before it is passed into
the function. Are there any known issues with respect to serialization of a
dataset? That is the only thing that I can think of that is causing this
ConstraitException to be thrown.

Thanks,

Hammad


 
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
DataSet.Merge problem J055 Microsoft ADO .NET 3 2nd Jul 2007 11:47 AM
DataSet V2: Merge problem =?Utf-8?B?QWxsZW4=?= Microsoft ASP .NET 0 24th Mar 2006 04:46 PM
Dataset Merge Problem Dana L. Stille Microsoft ADO .NET 4 11th May 2005 03:31 PM
problem with dataset.Merge() =?Utf-8?B?U00=?= Microsoft ADO .NET 1 7th May 2004 10:10 PM
Dataset.Merge() Problem Ruffeo Microsoft ADO .NET 1 18th Nov 2003 04:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:00 AM.