If i have one transaction say mainTransaction, within this
mainTransaction i have another two transaction say t1 and t2.
Now while execution t1 completes successfully and commit
statement fires, but while executing t2 some error occurs
and rollback statement fires.
What happen to t1, is it rollback or not?
Answer / candorz
BEGIN TRANSACTION
GO
BEGIN TRANSACTION
INSERT INTO [JSSKDB].[dbo].[JobsDb_Countries]
([CountryName])
VALUES
('something')
GO
COMMIT
GO
BEGIN TRANSACTION
INSERT INTO [JSSKDB].[dbo].[JobsDb_Countries]
([CountryName])
VALUES
('something1')
ROLLBACK
GO
For the above transaction the rollback will undo any changes made by the previous sub-transaction i.e. no change will be seen in the DB
Is This Answer Correct ? | 7 Yes | 1 No |
Create Index myIndex On myTable(myColumn) What type of Index will get created after executing the above statement
Can we create a clustered index on composite primary key.
Explain what is the difference between union and union all?
what's the difference between delete table and truncate table commands? : Sql server database administration
what purpose does the model database serve? : Sql server database administration
What are defaults? Is there a column to which a default can't be bound?
Explain Different types of Projects?
how you can get the list of largest tables in a database? : Sql server administration
How to handle errors in Stored Procedures. I want to display a message to the user in the .aspx page that is calling a stored procedure in it's code behind. please help me.
How do you know if sql server is running on your local system?
John exports information periodically from a microsoft sql server database to an oracle database what is the best way to do this?
What is the name of the Database which IBM mainframe uses?