PC Review


Reply
Thread Tools Rate Thread

Concurrency exception when calling a teradata storedproc

 
 
=?Utf-8?B?QWxp?=
Guest
Posts: n/a
 
      31st Oct 2005
Hi
I have a C# app that uses a dataadapter to update a table in a teradata
datawarhouse. It performs an update using a teradata stored procedure. In
teradata, stored procs dont actually return the number of rows updated but
instead return a 0 if successful. This results in a concurrency exception
being raised when the update is performed. Is there anyway to get around this
issue.

Regards
Syed
 
Reply With Quote
 
 
 
 
=?Utf-8?B?QWxp?=
Guest
Posts: n/a
 
      31st Oct 2005
I have managed to get it to work. i used an output parameter in teradata
which results in the row count set to 1 and thus doesnot cause a concurrency
exception.

"Ali" wrote:

> Hi
> I have a C# app that uses a dataadapter to update a table in a teradata
> datawarhouse. It performs an update using a teradata stored procedure. In
> teradata, stored procs dont actually return the number of rows updated but
> instead return a 0 if successful. This results in a concurrency exception
> being raised when the update is performed. Is there anyway to get around this
> issue.
>
> Regards
> Syed

 
Reply With Quote
 
Sahil Malik [MVP]
Guest
Posts: n/a
 
      31st Oct 2005
Ditto .. I was gonna suggest that very approach.


--

- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
-------------------------------------------------------------------------------------------

"Ali" <(E-Mail Removed)> wrote in message
news:66A0E915-9802-4679-AA47-(E-Mail Removed)...
>I have managed to get it to work. i used an output parameter in teradata
> which results in the row count set to 1 and thus doesnot cause a
> concurrency
> exception.
>
> "Ali" wrote:
>
>> Hi
>> I have a C# app that uses a dataadapter to update a table in a teradata
>> datawarhouse. It performs an update using a teradata stored procedure. In
>> teradata, stored procs dont actually return the number of rows updated
>> but
>> instead return a 0 if successful. This results in a concurrency exception
>> being raised when the update is performed. Is there anyway to get around
>> this
>> issue.
>>
>> Regards
>> Syed



 
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
concurrency exception Hendri Adriaens Microsoft C# .NET 1 11th Jun 2007 02:54 PM
Handling a Concurrency Exception =?Utf-8?B?Vy4gRGVuZ2xlcg==?= Microsoft ADO .NET 2 14th Jun 2006 09:08 PM
Difficult Concurrency Exception =?Utf-8?B?cG9seW5vbWlhbDVk?= Microsoft ADO .NET 3 5th May 2004 07:34 PM
MS Access concurrency exception Charlie Williams Microsoft Dot NET 4 12th Nov 2003 07:29 PM
Re: Concurrency exception Konrad Microsoft ADO .NET 4 19th Aug 2003 07:05 PM


Features
 

Advertising
 

Newsgroups
 


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