Russian Problem in MSSQL

sql server Turkey
  • 14 years ago

    Does anyone know wheter ADO converts Russian or smilar characters into any other form?

    I have an ASP page. It starts like:

    <% @ LANGUAGE="VBSCRIPT" %>
    <% Response.contentType = "text/html" %>
    <% Response.Charset="iso-8859-5" %>

    After that I make connection to SQL2000 server. Data can be written to server over ASP pages or can be read from server properly in English. Problem is at Russian chars. Namely I can not send Rus. chars to SQL Server neither I can properly read from ASP page. I have opened an Profiler Trace and seen that 'Получить возможность использования ' has ben turned to 'ÄØ×ØçÕáÚŞÕ ÁâàŞØâÕÛìáâÒŞ'.

     

    I connect simply through ADO as below:

    Set Conn = Server.CreateObject("ADODB.Connection")
    Conn.ConnectionString = "PROVIDER=SQLOLEDB; SERVER=XP;UID=...;PWD=...;DATABASE=dbname"
    Conn.Open
    Set rs = Server.CreateObject("ADODB.Recordset")
    rs.Open SqlStr, Conn



    Also, I can put Russian chars to table if  I open it from manager but I can not insert properly by Query Analyzer. I can correctly read what I have entered directly in to tables by Query Analyzer. Also, when looking at traces, I see converted Russian characters, not as I wrote. Database default lang is Eng or Turkish. Russian Data Colon is ntext format.

     

    SQL TABLE

    CREATE TABLE [dbo].[Tranlations] (
     [No] [int] IDENTITY (1, 1) NOT NULL ,
     [Tr] [ntext] COLLATE Turkish_CI_AI NULL ,
     [Eng] [varchar] (8000) COLLATE Turkish_CI_AS NULL ,
     [Ger] [ntext] COLLATE German_PhoneBook_CI_AS NULL ,
     [Ru] [ntext] COLLATE Cyrillic_General_CI_AS NULL ,
     [Hol] [ntext] COLLATE Latin1_General_CI_AS NULL ,
     [Fr] [ntext] COLLATE Latin1_General_CI_AS NULL ,
     [Sw] [ntext] COLLATE Finnish_Swedish_CI_AS NULL
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    GO









    Any idea? I will be very glad  for any heplp. Thnx a lot...

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There's no test like production” - Anon