How do I get an SQLCe sdf databases locale identifier?

I'm trying to read a database using a connection string like so:

"Data Source = '" + _SourceDirectory + "'; LCID=SomeLocale"

My issue is when I try to connect to an SDF database I copied from a Windows Mobile device I get the error that the Locale ID is not supported (-1 when I don't specify one). I need to be able to open the database and read from it.

Any ideas?


好吧,我“修复”了这一点,SDF文件可能已经损坏,因为我从设备中取出新的文件后没有问题。

链接地址: http://www.djcxy.com/p/53652.html

上一篇: 微软在Visual Studio中放弃了对SDF数据库文件的支持吗?

下一篇: 我如何获得SQLCe sdf数据库区域设置标识符?