PRB: OSQL Utility Cannot Run Under Hindi Locale/Indic Language Setting on Window 2000 (279108)



The information in this article applies to:

  • Microsoft SQL Server 2000 (all editions)
  • Microsoft SQL Server 7.0

This article was previously published under Q279108

SYMPTOMS

If you choose the Indic language setting and the Hindi locale from the Windows 2000 Regional options under Control Panel, you may get the following error message when you run Osql.exe from the command prompt:
Error: Locale or Codepage not properly installed on this machine
However, Query Analyzer works fine with the Hindi locale and Indic language setting.

WORKAROUND

Use Query Analyzer instead of the osql utility.

MORE INFORMATION

Osql.exe calls the Setlocale function to get codepage information. However, Hindi does not have a codepage as most of the languages do. Thus, the Setlocale function fails because it does not have a codepage value to set.

Modification Type:MajorLast Reviewed:10/17/2003
Keywords:kbprb KB279108