![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have been unable to map parameters for a sql select to a user variable. The error message states no data provided. I have read other topics related to this error, but need to confirm this option does not work in SSIS for OLE DB Source objects in Data Flow Components. I have tried various combinations of names for parmaters, replacing the "?" with the procedure parameter name, etc. I've spent a couple days playing with this, watching what profiler is seeing, and getting nowhere. SqlCommand: EXEC dbo.SPGetMonthlyTickets ? Proc on server: [dbo].[spGetMonthlyTickets] @smnthtckt varchar(50) AS Declare @sSql varchar(2000) set @sSql = 'select Distinct acctno, name, ytdbhexp, [' + @smnthtckt + '] [Tickets], status, ctsw ' + 'from dbo.Merchantwftbl ' + 'where status = '' ''' + 'and ctsw IN ('01'',''02'',''03'',''04'',''05'',''09'') ' 'order by acctno desc ' exec(@sSql) Thanks, Ken |
![]() |
| Thread Tools | |
| Display Modes | |
| |