i'm new programmer
all i know is has 2 way to sql transaction control . But i want to know is
1.1 when should be use transaction in program and when should be use transaction in database. 1.2 which is better (now i think sql transaction in program is better. But my boss want to use sql transaction in database)
From first question. when i insert data to master table and details table.
Below is my boss's stored procedure
SaveOrder( @customerID int, @value decimal(18,2), @details varchar(max) )
And i must send data like ...
SaveOrder(@customerID = 1,@value = 2500,@details = '(1,'apple',2,50),(2,'orange',3,70),(3,'banana',4,120)')
I disagree. but he said "don't want to use sql transaction in program."
How do you think with this. And which is better.