Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best practice
Message
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Title:
Best practice
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01077502
Message ID:
01077502
Views:
71
Is there a MS SQL Server best practices for writing SPs artice or book?

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
Semper ubi sub ubi.
Next
Reply
Map
View

Click here to load this message in the networking platform