question

jangi avatar image
jangi asked

can we combine two different stored procedure when each result shows different number of rows

can we combine two different stored procedure when each result shows different number of rows ? please let me know, how can we combine it and when I am using temp table to insert two stored procedures in it, it's showing an error. "Column name or number of supplied values does not match table definition".
sql server
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

anthony.green avatar image anthony.green commented ·
different number of rows yes, different number of columns no you will need to pad out with nulls into the missing columns, or do a specific insert into (col1,col2,col5) values (col1,col2,col5) etc in the procs
0 Likes 0 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.