I have this query:
declare @company as varchar (20); declare @query as varchar (500); select @company=Name from Company; set @query='SELECT [Name] ,[Address] FROM [' + @company + '$Customer]'
exec (@query)
It can run succesfully in SQL Server and 8 rows returned, but when i copied that query and pasted it in SSIS OLE DB Source,it showed a warning message "No column information was return by the SQL command"
Is it because SSIS OLE DB can't execute more than one select command like in these:
select @company=Name from Company
SELECT [Name] ,[Address] FROM [' + @company + '$Customer]
Please advise
Thanks