Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best practice
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Titre:
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01077502
Message ID:
01077505
Vues:
38
Einar

In SQL server, a single statement is "contained" in/by an implicit transaction.

>Is it considdered good practice to wrap even singe statements in a transaction. Something like this:
>
>BEGIN TRANSACTION
>UPDATE mytable SET Name = @Name WHERE Id = @Id
>END TRANSACTION
>
>RETURN @@ERROR
>
>
>Or is the transaction simply redundant?
>
>Einar
-=Gary
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform