PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.sqlserver.server > SQL2005 "Save results as" to ansi, not unicode
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
SQL2005 "Save results as" to ansi, not unicode

Réponse
 
LinkBack Outils de la discussion
Vieux 03/09/2008, 13h48   #1
Barry
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut SQL2005 "Save results as" to ansi, not unicode

I have a query developed in SQL2000 that is now on SQL2005. It is run daily
to a grid, where we use "save results as" to write the results to a csv file
for use in another system. The query works fine, but the output is now
Unicode instead of the (SQL2000) ANSI format. Unicode fails to import in the
external system. How can I get SQL2005 to write the same data format as did
SQL2000. Thanks, Barry
  Réponse avec citation
Vieux 03/09/2008, 14h21   #2
Russell Fields
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: SQL2005 "Save results as" to ansi, not unicode

Barry,

One you supply the name for the save file, the Save button will become
active. You will notice it has a down arrow on the right side. Click on
that down arrow, choose Save With Encoding, and select Ansi instead of
Unicode.

RLF

"Barry" <Barry@discussions.microsoft.com> wrote in message
news:4E64D986-6ED6-4F47-9EB1-1FB1EE47CBA7@microsoft.com...
>I have a query developed in SQL2000 that is now on SQL2005. It is run
>daily
> to a grid, where we use "save results as" to write the results to a csv
> file
> for use in another system. The query works fine, but the output is now
> Unicode instead of the (SQL2000) ANSI format. Unicode fails to import in
> the
> external system. How can I get SQL2005 to write the same data format as
> did
> SQL2000. Thanks, Barry



  Réponse avec citation
Vieux 03/09/2008, 21h15   #3
Barry
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: SQL2005 "Save results as" to ansi, not unicode

Russell,
That works great and I greatly appreciate the response. Do you know a way
to save this a a default or perhaps a better way to do this data extract. We
perform this process every day for 2 separate queries, so I'd like to find a
"goof-proof" process for our user. Thanks, again...
Barry

"Russell Fields" wrote:

> Barry,
>
> One you supply the name for the save file, the Save button will become
> active. You will notice it has a down arrow on the right side. Click on
> that down arrow, choose Save With Encoding, and select Ansi instead of
> Unicode.
>
> RLF
>
> "Barry" <Barry@discussions.microsoft.com> wrote in message
> news:4E64D986-6ED6-4F47-9EB1-1FB1EE47CBA7@microsoft.com...
> >I have a query developed in SQL2000 that is now on SQL2005. It is run
> >daily
> > to a grid, where we use "save results as" to write the results to a csv
> > file
> > for use in another system. The query works fine, but the output is now
> > Unicode instead of the (SQL2000) ANSI format. Unicode fails to import in
> > the
> > external system. How can I get SQL2005 to write the same data format as
> > did
> > SQL2000. Thanks, Barry

>
>
>

  Réponse avec citation
Vieux 03/09/2008, 22h10   #4
Aaron Bertrand [SQL Server MVP]
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: SQL2005 "Save results as" to ansi, not unicode

> That works great and I greatly appreciate the response. Do you know a way
> to save this a a default or perhaps a better way to do this data extract.


I asked for this. And even though it is marked as fixed, it is not fixed
the way I would like.

http://connect.microsoft.com/SQL/fee...edbackID=25977
9

> We perform this process every day for 2 separate queries,


Are you going to do this manually forever? Who is going to do it when you
are sick, or on vacation, or get hit by a bus, or win the lottery and move
to your new island? Kidding aside, you should write a utility (command-line
C# app, VBS script, SSIS package, what have you) that will automate this and
allow it to run programmatically (without having to worry about remembering
to change a save as option), whether on a schedule or on demand (one click
is better and easier to goof-proof than 15).

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 08h53.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10238 seconds with 12 queries