you need to merge the two resultsets into single one using union all or something with a dervied field like belowCREATE PROC procnameAS....SELECT ....,'First Resultset' as categoryFROM.......UNION ALLSELECT ....,'Second Resultset'FROM.......GOthen do insertions likeINSERT #FirstTempTableSELECT columns...FROM OPENROWSET('SQLOLEDB','Data Source=Server_name;Trusted_Connection=yes; Integrated Security=SSPI','Execute yourdb..procname')where Category='First resultset'INSERT #SecondTempTableSELECT columns...FROM OPENROWSET('SQLOLEDB','Data Source=Server_name;Trusted_Connection=yes; Integrated Security=SSPI','Execute yourdb..procname')where Category='Second resultset'another way is to add insert statements inside procedure itself------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/