all groups > sql server data warehouse > november 2004 >
You're in the

sql server data warehouse

group:

OSQL + sql files with accent characters = problems!


OSQL + sql files with accent characters = problems! Jéjé
11/15/2004 10:01:54 AM
sql server data warehouse: Hi,

I've an SQL file which contain accent characters to fill my default values
like this:
insert into mtytable.... values('Février')
and also I create storedprocedures which execute some insert / update
command with the same values.

The SQL file is correct.
I've a batch file (.bat) which execute this command :

osql -E -i "MyScript.sql" -d MyDatabase

but the result is:
the accents disappeared !
Février become FÚvrier in the database!

My stored procedure has changed during the OSQL execution.
How can I solve the problem?

The storeprocedure (and other commands) are correct in the .sql file.

thanks.

Jerome.

Re: OSQL + sql files with accent characters = problems! Rick Sawtell
11/15/2004 12:41:16 PM

[quoted text, click to view]

osql can use Unicode input files, however, when you create the Unicode input
files,
you need to do so using UTF-16 rather than the default UTF-8.

HTH

Rick Sawtell
MCT, MCSD, MCDBA


Re: OSQL + sql files with accent characters = problems! Jéjé
11/15/2004 1:50:47 PM
ok, I'll try this

[quoted text, click to view]

AddThis Social Bookmark Button