I try to steer clear of cursors whenever possible as they seriously degrade your preformance. In so far as 'Multiple Record' I assume you mean you are inserting 2 rows of data.
In .NET you can use a text command or a paramertized query to do this, and then call it as many times as needed; if i was doing this inside of sql (depending on the situation) i would do something like
INSERT INTO [table]([value1], [value2])
SELECT [value1], [value2] From [AnotherTable] Where [value3] = [something]
--Stole this from a moderator
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
|