I would like to know how could I do on this case, and if anyone can help me I will really appreciate it!
I use a DB for register and roles user, etc. I also use another DB for all the data for one user. I only have one DB for all user but I have for each user one DB for his data. When I create a user I inser data on the UserDB and also to the UserData. I am using membership api for the registering.
I want to know how could I use transaction to check that all data was insert correctly(the first time a user is created).
For example:
I register a user(create a a row for each table on my UserDB). I crate a Data data base for that user with primary info at one table of his Data DB.
How could I rollback transaction if I could insert on Data DB?