Avatar of aionine
aionine
 asked on

READPAST error

I am using WITH (READPAST) hint in some embedded queries from .NET application to SQL Server 2005.
I am not setting the isolation level anyware, so presumably its the default READ COMMITED.
I am getting error:
"You can only specify the READPAST lock in the READ COMMITTED or REPEATABLE READ isolation levels".

Any clues?
Microsoft SQL Server 2005

Avatar of undefined
Last Comment
aionine

8/22/2022 - Mon
chapmandew

are you doing it on a view ?
aionine

ASKER
No, but I use joins, if this is of any significance:

SELECT SC.*, A.SiteGuid
FROM     dbo.RGSiteConfig SC WITH (READPAST)
INNER
JOIN
               dbo.RGAccount A WITH (READPAST)
                                                                                   ON A.AccountGuid = SC.AccountGuid
WHERE SiteGuid = @siteGuid
ASKER CERTIFIED SOLUTION
chapmandew

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
aionine

ASKER
I guess I'll try that.
I am not exited though :-)
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
chapmandew

Im not "exited" either.  :)
aionine

ASKER
It seems to solve the problem - no errors have been reported since.
Strange it was needed, but that makes this solution excellent.