PC Review


Reply
Thread Tools Rate Thread

ARITHABORT....

 
 
Ollie Riches
Guest
Posts: n/a
 
      26th Jan 2005
I have a stored procedure that is being called from ado.net and it is
failing with an exception that is related to the option ARITHABORT - 'UPDATE
failed because the following SET options have incorrect settings:
'ARITHABORT'.

This stored procedure works perfectly fine from query analyzer and from
enterprise manager in sql server. Is this a problem with ado.net?

The database is sql server 2000 with .net framework version 1.1

Cheers in advance

Ollie Riches


 
Reply With Quote
 
 
 
 
Ollie Riches
Guest
Posts: n/a
 
      26th Jan 2005
found this....

http://www.dotnet247.com/247referenc...37/187707.aspx

Ollie Riches

"Ollie Riches" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have a stored procedure that is being called from ado.net and it is
> failing with an exception that is related to the option ARITHABORT -

'UPDATE
> failed because the following SET options have incorrect settings:
> 'ARITHABORT'.
>
> This stored procedure works perfectly fine from query analyzer and from
> enterprise manager in sql server. Is this a problem with ado.net?
>
> The database is sql server 2000 with .net framework version 1.1
>
> Cheers in advance
>
> Ollie Riches
>
>



 
Reply With Quote
 
Ollie Riches
Guest
Posts: n/a
 
      27th Jan 2005
it appears that an index is causing this to occur but the database is out of
my control is there any other way to resolve this with out removing the
index?

Cheers

Ollie Riches

"Ollie Riches" <(E-Mail Removed)> wrote in message
news:O#(E-Mail Removed)...
> found this....
>
> http://www.dotnet247.com/247referenc...37/187707.aspx
>
> Ollie Riches
>
> "Ollie Riches" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > I have a stored procedure that is being called from ado.net and it is
> > failing with an exception that is related to the option ARITHABORT -

> 'UPDATE
> > failed because the following SET options have incorrect settings:
> > 'ARITHABORT'.
> >
> > This stored procedure works perfectly fine from query analyzer and from
> > enterprise manager in sql server. Is this a problem with ado.net?
> >
> > The database is sql server 2000 with .net framework version 1.1
> >
> > Cheers in advance
> >
> > Ollie Riches
> >
> >

>
>



 
Reply With Quote
 
Marc Mertens
Guest
Posts: n/a
 
      27th Jan 2005
You can try to send a SET ARITHABORT ON on the connection that you use to
execute the stored procedure. Alternatively you can make a command object
(type Text) with commandtext like "SET ARITHABORT ON EXEC procedurename
@par1,@par 2 " when you want to execute the stored procedure.

Marc

"Ollie Riches" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> it appears that an index is causing this to occur but the database is out

of
> my control is there any other way to resolve this with out removing the
> index?
>
> Cheers
>
> Ollie Riches
>
> "Ollie Riches" <(E-Mail Removed)> wrote in message
> news:O#(E-Mail Removed)...
> > found this....
> >
> > http://www.dotnet247.com/247referenc...37/187707.aspx
> >
> > Ollie Riches
> >
> > "Ollie Riches" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > I have a stored procedure that is being called from ado.net and it is
> > > failing with an exception that is related to the option ARITHABORT -

> > 'UPDATE
> > > failed because the following SET options have incorrect settings:
> > > 'ARITHABORT'.
> > >
> > > This stored procedure works perfectly fine from query analyzer and

from
> > > enterprise manager in sql server. Is this a problem with ado.net?
> > >
> > > The database is sql server 2000 with .net framework version 1.1
> > >
> > > Cheers in advance
> > >
> > > Ollie Riches
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Ollie Riches
Guest
Posts: n/a
 
      27th Jan 2005
I tried 'Set ARITHABORT ON' inside the sp (no joy), is that to late ?

Ollie

"Marc Mertens" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> You can try to send a SET ARITHABORT ON on the connection that you use to
> execute the stored procedure. Alternatively you can make a command object
> (type Text) with commandtext like "SET ARITHABORT ON EXEC procedurename
> @par1,@par 2 " when you want to execute the stored procedure.
>
> Marc
>
> "Ollie Riches" <(E-Mail Removed)> wrote in message
> news:#(E-Mail Removed)...
> > it appears that an index is causing this to occur but the database is

out
> of
> > my control is there any other way to resolve this with out removing the
> > index?
> >
> > Cheers
> >
> > Ollie Riches
> >
> > "Ollie Riches" <(E-Mail Removed)> wrote in message
> > news:O#(E-Mail Removed)...
> > > found this....
> > >
> > > http://www.dotnet247.com/247referenc...37/187707.aspx
> > >
> > > Ollie Riches
> > >
> > > "Ollie Riches" <(E-Mail Removed)> wrote in message
> > > news:(E-Mail Removed)...
> > > > I have a stored procedure that is being called from ado.net and it

is
> > > > failing with an exception that is related to the option ARITHABORT -
> > > 'UPDATE
> > > > failed because the following SET options have incorrect settings:
> > > > 'ARITHABORT'.
> > > >
> > > > This stored procedure works perfectly fine from query analyzer and

> from
> > > > enterprise manager in sql server. Is this a problem with ado.net?
> > > >
> > > > The database is sql server 2000 with .net framework version 1.1
> > > >
> > > > Cheers in advance
> > > >
> > > > Ollie Riches
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
=?Utf-8?B?RGF2ZSBGYW5jaGVy?=
Guest
Posts: n/a
 
      28th Jan 2005
Execute the command against the connection itself.

Refer to http://support.microsoft.com/kb/305333 for more information.

HTH
-----
Dave Fancher
http://davefancher.blogspot.com

"Ollie Riches" wrote:

> I tried 'Set ARITHABORT ON' inside the sp (no joy), is that to late ?
>
> Ollie
>
> "Marc Mertens" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > You can try to send a SET ARITHABORT ON on the connection that you use to
> > execute the stored procedure. Alternatively you can make a command object
> > (type Text) with commandtext like "SET ARITHABORT ON EXEC procedurename
> > @par1,@par 2 " when you want to execute the stored procedure.
> >
> > Marc
> >
> > "Ollie Riches" <(E-Mail Removed)> wrote in message
> > news:#(E-Mail Removed)...
> > > it appears that an index is causing this to occur but the database is

> out
> > of
> > > my control is there any other way to resolve this with out removing the
> > > index?
> > >
> > > Cheers
> > >
> > > Ollie Riches
> > >
> > > "Ollie Riches" <(E-Mail Removed)> wrote in message
> > > news:O#(E-Mail Removed)...
> > > > found this....
> > > >
> > > > http://www.dotnet247.com/247referenc...37/187707.aspx
> > > >
> > > > Ollie Riches
> > > >
> > > > "Ollie Riches" <(E-Mail Removed)> wrote in message
> > > > news:(E-Mail Removed)...
> > > > > I have a stored procedure that is being called from ado.net and it

> is
> > > > > failing with an exception that is related to the option ARITHABORT -
> > > > 'UPDATE
> > > > > failed because the following SET options have incorrect settings:
> > > > > 'ARITHABORT'.
> > > > >
> > > > > This stored procedure works perfectly fine from query analyzer and

> > from
> > > > > enterprise manager in sql server. Is this a problem with ado.net?
> > > > >
> > > > > The database is sql server 2000 with .net framework version 1.1
> > > > >
> > > > > Cheers in advance
> > > > >
> > > > > Ollie Riches
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>
>

 
Reply With Quote
 
Ollie Riches
Guest
Posts: n/a
 
      31st Jan 2005
cheers worked perfectly when I modifed the code

Ollie
"Dave Fancher" <(E-Mail Removed)> wrote in message
news:AD1F85A8-FF87-4FDA-8860-(E-Mail Removed)...
> Execute the command against the connection itself.
>
> Refer to http://support.microsoft.com/kb/305333 for more information.
>
> HTH
> -----
> Dave Fancher
> http://davefancher.blogspot.com
>
> "Ollie Riches" wrote:
>
> > I tried 'Set ARITHABORT ON' inside the sp (no joy), is that to late ?
> >
> > Ollie
> >
> > "Marc Mertens" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > You can try to send a SET ARITHABORT ON on the connection that you

use to
> > > execute the stored procedure. Alternatively you can make a command

object
> > > (type Text) with commandtext like "SET ARITHABORT ON EXEC

procedurename
> > > @par1,@par 2 " when you want to execute the stored procedure.
> > >
> > > Marc
> > >
> > > "Ollie Riches" <(E-Mail Removed)> wrote in message
> > > news:#(E-Mail Removed)...
> > > > it appears that an index is causing this to occur but the database

is
> > out
> > > of
> > > > my control is there any other way to resolve this with out removing

the
> > > > index?
> > > >
> > > > Cheers
> > > >
> > > > Ollie Riches
> > > >
> > > > "Ollie Riches" <(E-Mail Removed)> wrote in message
> > > > news:O#(E-Mail Removed)...
> > > > > found this....
> > > > >
> > > > > http://www.dotnet247.com/247referenc...37/187707.aspx
> > > > >
> > > > > Ollie Riches
> > > > >
> > > > > "Ollie Riches" <(E-Mail Removed)> wrote in message
> > > > > news:(E-Mail Removed)...
> > > > > > I have a stored procedure that is being called from ado.net and

it
> > is
> > > > > > failing with an exception that is related to the option

ARITHABORT -
> > > > > 'UPDATE
> > > > > > failed because the following SET options have incorrect

settings:
> > > > > > 'ARITHABORT'.
> > > > > >
> > > > > > This stored procedure works perfectly fine from query analyzer

and
> > > from
> > > > > > enterprise manager in sql server. Is this a problem with

ado.net?
> > > > > >
> > > > > > The database is sql server 2000 with .net framework version 1.1
> > > > > >
> > > > > > Cheers in advance
> > > > > >
> > > > > > Ollie Riches
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >
> >



 
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
set ARITHABORT on fniles Microsoft VB .NET 6 21st Apr 2010 07:41 AM
SET ARITHABORT ON makes ADO.NET query way faster. WHY? cmay Microsoft ADO .NET 1 14th Jun 2007 04:41 PM
ARITHABORT + IF Statement + Label Causing SqlException craig.wagner@gmail.com Microsoft ADO .NET 0 12th Dec 2006 01:01 AM
SET ARITHABORT ON: Why (not)? Pieter Microsoft VB .NET 4 24th May 2006 02:00 PM
ARITHABORT error Trevor Lawrence Microsoft ADO .NET 0 18th Oct 2003 05:22 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:25 PM.