Query output is always in UNICODE... need ANSI ... Help?

From: MeesterJeem (junque_at_oqs.com)
Date: 11/25/04


Date: 25 Nov 2004 09:27:16 -0800

I'm using XP_Sendmail stored procedure to run a query and mail the
results as an attachment in the resulting email. The process works
fine except that the attachment (whatever.xyz) is apparently in
UNICODE and the application that subsequently consumes the attachment
(when double-clicked in the email)dislikes the UNICODE version of the
attachment and rejects it. Using NOTEPAD to edit and save the
unmodified attachment in ANSI format makes the application all happy
and reads in the file OK.

Q: Is there a way to tell SQL Server to output its results with ANSI
coding rather than UNICODE? Perhaps there's a temporary option that
can be set in the query?



Relevant Pages

  • Re: Query output is always in UNICODE... need ANSI ... Help?
    ... > I'm using XP_Sendmail stored procedure to run a query and mail the ... > UNICODE and the application that subsequently consumes the attachment ... > unmodified attachment in ANSI format makes the application all happy ...
    (microsoft.public.sqlserver.programming)
  • Re: Query output is always in UNICODE... need ANSI ... Help?
    ... > I'm using XP_Sendmail stored procedure to run a query and mail the ... > UNICODE and the application that subsequently consumes the attachment ... > unmodified attachment in ANSI format makes the application all happy ...
    (microsoft.public.sqlserver)
  • Query output is always in UNICODE... need ANSI ... Help?
    ... I'm using XP_Sendmail stored procedure to run a query and mail the ... UNICODE and the application that subsequently consumes the attachment ... unmodified attachment in ANSI format makes the application all happy ...
    (microsoft.public.sqlserver.programming)
  • Re: noise words, @@ERROR, and stop and resume indexing
    ... > Noiseword varcharNot Null ... > the data from the noise file to the noise_words table. ... >> A clause of the query contained only ignored words. ... >> into query analyzer before starting the stored procedure. ...
    (microsoft.public.sqlserver.fulltext)
  • RE: ODBC query in VB code Need HELP
    ... I am trying to get a stored procedure to run on info I send it I do not need ... I played around and got the code below to work using a pass-through query, ... Dim strpass As String ...
    (microsoft.public.access.formscoding)