I have a web application that receives about 50 hits per second, and with each hit I raise about 10 records in a central SQL Server database. About every 3 seconds, I raise 5,000 lines for one incoming connection.
I currently have a stored procedure that accepts XML as a parameter. I insert INSERT into my main table from my XML, where the row field does not match, and then updates the whole table with the values from my XML.
The operation is not slowed down by any means, but I really would like to know how to do it. I am working on SQL Server 2005, so I do not have a MERGE operation.
source
share