I have a scenario where I have created a function which is returning a table variable. I want to use this table variable inside a insert statement. Below is the query
INSERT INTO DNVPCDCS..d_CMRequest
(PRIORITY, RETRIES,ACTIONCD,FILENAME,TAXONOMY,NOTES,GUID,TOKEN,STATUS,ISDBUSER)
VALUES
@PRIORITY,0,'INS',@FILENAME,[dbo].[udf_GetTaxonomy](@IMAGEID,@HISTORYNO,@NEW_GUID),@NOTES,@NEW_GUID,@TOKEN,'N',NULL
I am not sure about the syntax and am getting error on this.