General information
Forum:
Microsoft SQL Server
Title:
Rowlock with inner join
Environment versions
SQL Server:
SQL Server 2005
Hi,
I am trying to issue the following statement with to lock a record with inner join but I have an error:-
SELECT amaster.acctno,bmaster.balance,bmaster.YEAR
FROM amaster [ROWLOCK] with (Xlock)
INNER JOIN bmaster
ON amaster.acctno = bmaster.acctno
WHERE (bmaster.YEAR = 2007)
ORDER BY amaster.acctno
The error:
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "amaster.acctno" could not be bound.
Thanks
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only