How do I add parameters to this query? My SP requires them but I can not figure out how to get it to work.
Thanks
SELECT * INTO #tmptbl
FROM OPENROWSET ('SQLOLEDB','Server=(local);TRUSTED_CONNECTION=YES;'
,'set fmtonly off exec DB.dbo.Rpt_PrintSp')
SELECT * from #tmptbl
drop table #tmptbl