I am executing the string that contains the below code
DECLARE @BadgeNo NVARCHAR(MAX);
SET @BadgeNo='8107';
SELECT * INTO #Testing
EXEC spNotification 'Param1','Param2','Param3','Param4';
EXEC spSqlTmpTblToHtmlTbl 'tempdb..#Testing'
I just want the result in html format. So I am executing spnotification
to get the results.
The spSqlTmpTblToHtmlTbl
converts the temp table to table format. But here is an issue that I can't create a temp table from spNotification
result. I know
select * into
command won't work with the exec
command. So how can I achieve this?