Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Issue explicit lock for testing
Message
 
 
À
12/09/2008 12:25:53
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01347107
Message ID:
01347125
Vues:
50
This message has been marked as the solution to the initial question of the thread.
You can open transaction and use Locking Hints with a query to simulate locks (XLOCK for exclusive locks).

>I am working on exception handling code in our .Net app.
>
>In VFP I could open another session of VFP and issue a Record or Table lock to test exception handling.
>Is there any way to do something similar in SQL Server using SMSS? Just looking for an easy way to get an update or insert to fail.
>All of our CRUD operations use SPs.
>
>Thanks
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform