SQL queries get from Profiler:
exec sp_executesql N'INSERT INTO Customer (Street, City, PostalCode, Name, Telephon) VALUES (@p0, @p1, @p2, @p3, @p4); select SCOPE_IDENTITY()',N'@p0 nvarchar(15),@p1 nvarchar(8),@p2 nvarchar(6),@p3 nvarchar(10),@p4 nvarchar(14)',@p0=N'Kaprio 123/4',@p1=N'Rzeszow',@p2=N'03-982',@p3=N'Hotel',@p4=N'123 456-66-22' exec sp_executesql N'INSERT INTO Invoice (CustomerId, Date, InvoiceNumber) VALUES (@p0, @p1, @p2); select SCOPE_IDENTITY()',N'@p0 int,@p1 datetime,@p2 nvarchar(13)',@p0=12,@p1='2009-09-03 00:19:44:000',@p2=N'FV/2009/02/15' exec sp_executesql N'UPDATE Invoice SET Id = @p0 WHERE Id = @p1',N'@p0 int,@p1 int',@p0=12,@p1=102 (this update generate exception I suppose)
|