while inserting multiple records at a same time in a single transaction without failure (eg: bulk booking cinema tickets) means how to do this. for that inserting datas in sql server via xml is better.By using this we can also stop the transaction failure.................
The following example shows how to insert the multiple records using xml data
CREATE TABLE [dbo].[empinfo](
[eno] [int] NULL,
[ename] [varchar](50)
)
Stored procedure:
Create Procedure sp_InsertEmp
@in_XML Text
AS
Begin
DECLARE @XMLHandle AS INTEGER
Declare @temp table
(empno int,
empname varchar(20)
)...