r/SQLServer • • Jun 18 '26

Question How are rollbacks handled in SQL Server?

Hi there!
Let me give you some context.

So I've just began a new job and I've been given the task of working on a new unfinished project.
The only issue is I have no idea how it works and there is absolutely no documentation about how it really works.
I do not have access to the code nor will I ever have access. So my only hope to accomplish something ever is just by the Database alone.

But there is a problem there also. You see none of the tables have reference constraints. Meaning I am not sure how the tables relate to each others and also they have very generic names. And not generic as in Person, or Client but rather AS001 and AS004.

So, no help on the tables either. Now I think my best bet right now is just creating random stuff through the App itself and see the changes that were made to the DB itself.

But I am not sure how SQL Server handles that. If its possible or if its even the best way to handle this situation.

How would you go about handling this situation? Or if this is really the only way? How are rollbacks handled? How can I see what changes are made in a DB via a single action?

Any help or guidance is more than welcome.
Thank you for your time!

6 Upvotes

24 comments sorted by

View all comments

Show parent comment

3

u/jshine13371 6 Jun 19 '26 edited Jun 19 '26

Couple quick things:

  • Asking how transaction rollbacks work is the wrong question here. Especially since you don't have a way to implement them, as they require changing the code which you likely don't have access to.
  • You can go the approach of trial and error by using the app and seeing the results, that is a valid approach. But you should be doing that in a development environment. So if your organization doesn't have one of those already, that's your next important objective here.
  • There's a multitude of ways you can trace the stack of database calls made when using the app, which is even more helpful then aimlessly looking for which tables changed. My preference is the SQL Server Profiler.
  • It is possible to decompile a closed source application into readable code. I've done this before to reverse engineer how 3rd party apps work.