Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Stumped on UPDATE error

Author  Topic 

SamC
White Water Yakist

3467 Posts

Posted - 2003-10-29 : 09:41:32
[Microsoft][ODBC SQL Server Driver][SQL Server]UPDATE failed because the following SET options have incorrect settings: 'QUOTED_IDENTIFIER, ARITHABORT'.

Sam

MakeYourDaddyProud

184 Posts

Posted - 2003-10-29 : 09:48:45
Are you using OPENQUERY/OPENROWSET?

Daniel Small MIAP
www.danielsmall.com IT Factoring
Go to Top of Page

SamC
White Water Yakist

3467 Posts

Posted - 2003-10-29 : 09:52:54
Nope. I can call this SP from QA and it fails.

Here's the statement. IF I comment it out, the SP runs without error.

UPDATE dbo.Users -- Now make this user active (unless it's hidden)
SET Inactive = 1 -- Force Active if this Inactive User logged in
WHERE UserID = @UserID

Sam
Go to Top of Page

MakeYourDaddyProud

184 Posts

Posted - 2003-10-29 : 09:59:06
Is it not a simple case of setting the QUOTED_IDENTIFIER and ARITHABORT to on? set QUOTED_IDENTIFIER ON etc...

Daniel Small MIAP
www.danielsmall.com IT Factoring
Go to Top of Page

SamC
White Water Yakist

3467 Posts

Posted - 2003-10-29 : 10:12:21
It appears to have been caused by INDICIES that I've added. Delete the indicies, and the update runs without error.

I'm going to have to look more closely at this.

Sam
Go to Top of Page
   

- Advertisement -