sql server - Insert arbitrary number of rows into a table -


i have stored procedure doing merge , updating several tables new ids etc.

what trying record items , related items table in case needs reverted. have data ready transferred sitting in multiple temporary tables in stored procedure, have blank table ready receive data don't know how i'm going insert in there.....

the number of items maybe 1 or maybe 10.....anyone ideas on how might achieve this?

ok reason slipped mind, im doing in same sp :)

insert [tblmytable]([field1])     select [datafield]     [tbldatatable] 

very easy :)


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo