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 :)