I created a stored procedure that has input the DBName and output param. a flag that indicates if the descriptions of tables and columns were downloaded into a temp table with success. I try to pass the temp table as output param and use it in another procedure. I tried with udt table and openrowset but it didnt work. Can anyone help me out with this problem. Thanks.
Code :
declare @vFlagOk tinyint
declare @vDataSet nvarchar(max)
exec dbo.Documenter_setDescriptionFromDB
@pDBName = 'Name'
, @pSQLCMDRunedWithSuccess = @vFLagOK output , @pDataSetDescriptions = @vDataSet output