Is there a way in DTS to create a text file from a query only if the query returns data? I think I could do it with an activex script, but I really don't want to hardcode my database user and password info.
You need to use activeX script for this, unless you want to create the text file using t-SQL. If you decide to do it that way, have a look at bcp in SQL Server help.
Hope this helps,
Alex
Ignorance of certain subjects is a great part of wisdom
Thanks Alex. I ended up just writing an ActiveX script that deleted the file that was produced if the file size was 0. So far, it seems to be what I needed.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.