Export DTS As Unicode text

I need to take a select statement and export it in a DTS package as a unicode textfile
tbaseflugAsked:
Who is Participating?
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.

SjoerdVerweijCommented:
Ok... what, specifically, are you having a problem with?
0
tbaseflugAuthor Commented:
It gets a little deep from here, but am using MS Baseline Security Analyzer to against a list of servers that are pulled from a SQL table and pumped into a text file - MBSA will only accept unicode format
0
cjm30305Commented:
Have you considered using

xp_CmdShell 'isqlw -E -s MYSQLSERVERINSTANCE -F U -i myquery.sql -o myoutput.txt"  

Your results (myoutput.txt) will be in UNICODE format by using the command line switch "-F" for ISQLW.
0

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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

tbaseflugAuthor Commented:
cjm30305 -

Where would I run this from?
0
cjm30305Commented:
It is an extended stored procedure, and a T-SQL command, so you use an 'Execute SQL Task' object.
0
tbaseflugAuthor Commented:
this may be a dumb question - but if I execute it from QA, how will it know where the location of the txt and sql files are - or do I have explicitly set the location \ path in the statement itself, e.g. c:\myoutput.txt, etc.?
0
cjm30305Commented:
You are correct.  You have to specify the path....
0
tbaseflugAuthor Commented:
cjm30305 -

I am trrying the following and the query seems to just sit and spin with no return

xp_CmdShell 'isqlw -E -s DATK02 -F U -i C:\MBSASamples\myquery.sql -o C:\MBSASamples\myoutput.txt'
0
davehilditchCommented:
Run the same command from the command prompt - you must have a dialog box or something popping up.

Go to Start Menu | Run

Type:

Cmd

Then a black box comes up - put the command in there.

isqlw -E -s DATK02 -F U -i C:\MBSASamples\myquery.sql -o C:\MBSASamples\myoutput.txt

And check your error messages.

Dave Hilditch.
0
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
Microsoft SQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.