I'm having some trouble dumping data out to a CSV from SQL Server. I am using an SSIS package with a data flow task. The data flow task has a OLEDB source which is my database. I use a SQLCMD which contains a query (query includes multiple table variables, etc and fetches a result-set) then I connect it to the Flat File Destination control. When I debug this, my flat file comes out empty. The file does get created but no data in it. I have defined the flat file connection manager and used an expression to dynamically name the file with the timestamp on it. Any idea's why this could be happening? When I preview my results in the OLEDB Source control, I do get back results, but it seems like the results aren't getting through for some reason. I put a data viewer and it just skips the data viewer while in debug mode. I have mapped out all the columns properly and everything too. All the output columns from the OLEDB source are unicode (DT_WSTR). I have defined all the columns as DT_STR in the flat file connection manager. Any help would be nice and much appreciated. Thanks,
S