无法从 Visual Studio 2012 连接到 SQL Server Compact 数据库
Cannot connect to SQL Server Compact Database from Visual Studio 2012
我正在尝试使用 these leads 从我的解决方案连接到现有 *.sdf
文件,但“添加连接”对话框未打开,因此我尝试手动连接:转至 "Data sources",单击 "Add new" 并选择 Microsoft SQL 数据库文件,但是在第一个过滤器中选择 db 文件时不允许我选择我的 *.sdf
文件。当我将过滤器设置为 "All files" 和 select 我的文件时,出现异常:"Failed to determine the version of database file"。
那么我该怎么做才能连接到这个数据库呢?
SQL Server Compact/SQLite Toolbox 是 SQL Compact 最有用的工具。我希望,它能解决你所有的问题。
我正在尝试使用 these leads 从我的解决方案连接到现有 *.sdf
文件,但“添加连接”对话框未打开,因此我尝试手动连接:转至 "Data sources",单击 "Add new" 并选择 Microsoft SQL 数据库文件,但是在第一个过滤器中选择 db 文件时不允许我选择我的 *.sdf
文件。当我将过滤器设置为 "All files" 和 select 我的文件时,出现异常:"Failed to determine the version of database file"。
那么我该怎么做才能连接到这个数据库呢?
SQL Server Compact/SQLite Toolbox 是 SQL Compact 最有用的工具。我希望,它能解决你所有的问题。