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

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Reg Besseling (regbes.nospam_at_hotmail.com)
Date: 11/30/04


Date: Tue, 30 Nov 2004 08:26:49 +0200

Meester,

Add the following to your list of parameters

@ansi_attachment = 'true'

Regards

Reg Besseling

"MeesterJeem" <junque@oqs.com> wrote in message
news:62ed6a02.0411250927.295e2ac9@posting.google.com...
> 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)
  • 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)