Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rowlock with inner join
Message
 
 
À
26/10/2007 05:08:20
Issam Mansour
Jordan Business Machines
Amman, Jordanie
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01263962
Message ID:
01264035
Vues:
12
First, teh ROWLOCK and XLOCK hints cannot be used together.
The multiple hints should be used as infollowing example
... FROM aTable WITH (TABLOCK, HOLDLOCK) ...
See BOL for details.


>
>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
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform