SQL 紧凑 4 异常 [英] SQL compact 4 exception

查看:42
本文介绍了SQL 紧凑 4 异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用 C# 编写的 Windows 窗体应用程序,并在带有 SQL compact 4 数据库的 Windows XP 机器上运行.操作系统语言为简体中文.我正面临一个奇怪的例外.此计算机上未安装指定的语言环境.请确保安装适当的语言包.LCID 1053"为什么?该应用程序在所有其他配置/语言上都可以正常工作.

I have a windows form application written in C# and running on a Windows XP machine with SQL compact 4 database. The operating system language is simplified chinese. I'm facing a strange exception. "The specified locale is not installed on this machine. Make sure you install the appropriate language pack. LCID 1053" Why? The application does work ok on all other configurations/languages.

推荐答案

那是瑞典的语言环境.您可以通过修改连接字符串来更改语言环境:

That is the locale for Sweden. You can change the locale by modifying the connection string:

http://msdn.microsoft.com/en-us/library/ms174034.aspx

所以它会像

conString = "....;Locale Identifier=XXXX;..."

conString = "....;Locale Identifier=XXXX;..."

可以在此表中找到 XXXX 的位置:http://msdn.microsoft.com/en-us/goglobal/bb964664

where the XXXX can be found on this table: http://msdn.microsoft.com/en-us/goglobal/bb964664

这篇关于SQL 紧凑 4 异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆