ETL Sql Server OLE Source displays preview data - but exports nothing

I have a huge involved query - with lots of temp tables ect. At the end I do a Select * from temptable and it displays data.
This query work in SSMS and when I paste it into a OLE Source - it returns the proper rows when I do a preview.
But, when I place it pointing to a destination - database - flat file it returns nothing. Any thoughts?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

EugeneZ ZhitomirskySQL SERVER EXPERTCommented:
please provide additional details ( more is better) and any related errors.
for start:
"flat file it returns nothing."  - you may need to check if your process is using UNC path to this file
\\servername\share and appropriate permissions to access\write to this file
Vitor MontalvãoMSSQL Senior EngineerCommented:
ralphp1355, if you want us to help you please provide the requested details.
ralphp1355Author Commented:
I used a Common table expression query and put it into an ETL package - it would not work within VS VB 2010

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ralphp1355Author Commented:
Because your experts could not solve it - I get more answers from stackoverflow.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.