CREATE TABLE #tmpTable ( COL1 int, COL2 int, COL3 nvarchar(max), COL4 nvarchar(max), COL5 bit ) INSERT INTO #tmpTable exec SpGetRecords 'Params'
NOTE: The columns of #tmpTable must be the same as SpGetRecords. Otherwise, there will be a problem.
If there are no parameters in the stored procedure, you don’t need to use ‘Params’.