Hello Every one,
im new to Development
my question is how to write transactions in C# and SQL and is it good practice to write transactions in C# or SQL
thanks in advance
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sanwar RanwaRank #23 · 44.7K reputationPosted Dec 13, 2018, 10:57 PM EST
Priyanka SinghRank #1,215 · 1.5K reputationPosted Dec 13, 2018, 11:06 PM EST
Sreekanth ReddyRank #726 · 3.2K reputationPosted Dec 13, 2018, 11:14 PM EST
Santhosh Uj65 reputationPosted Dec 13, 2018, 11:20 PM EST
Rajeev KumarRank #1,334 · 1.3K reputationPosted Mar 7, 2023, 12:43 AM EST
BEGIN TRAN
TRUNCATE TABLE Employees
ROLLBACK
SELECT * FROM Employees