- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我们有一个使用 Pervasive PSQL 数据库的现有闭源第三方应用程序。例如,PSQL 位于目录 c:\test 中,名称如 holiday.dat、offers.dat 等。我想在没有安装 Pervasive Workstation Engine 的情况下阅读并尽可能写入这些文件。使用工作站引擎和 ODBC 连接,它可以毫无问题地运行。但是我们不会在任何客户端上安装工作站引擎,第三方应用程序也不会。
关于 connectionsstrings.com我找到了连接字符串:
"Provider=PervasiveOLEDB;Data Source=C:\datafilesDirectory;"
使用指令:
using Pervasive.Data.SqlClient;using System.Data.OleDb;using System.Xml.Serialization;
测试连接片段:
string strAccessConn = "Provider=PervasiveOLEDB;Data Source=C:\datafilesDirectory;"string strAccessSelect = "SELECT * FROM holidays";// Create the dataset and add the Categories table to it:DataSet myDataSet = new DataSet();OleDbConnection myAccessConn = null;try{ myAccessConn = new OleDbConnection(strAccessConn);}catch(Exception ex){ Console.WriteLine("Error: Failed to create a database connection. \n{0}", ex.Message); return;}try{ OleDbCommand myAccessCommand = new OleDbCommand(strAccessSelect,myAccessConn); OleDbDataAdapter myDataAdapter = new OleDbDataAdapter(myAccessCommand); myAccessConn.Open(); myDataAdapter.Fill(myDataSet,"Categories");}catch (Exception ex){ Console.WriteLine("Error: Failed to retrieve the required data from the DataBase.\n{0}", ex.Message); return;}finally{ myAccessConn.Close();}
应用程序无法打开数据库连接。
最佳答案
在连接字符串中,您应该替换 C:\datafilesDirectory;用 C:\test;.
关于c# - 使用 OLE DB 连接 Pervasive DB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1464313/
嘿,谁能告诉我 Field、File 和 Index .ddf 文件普遍存在的作用。当表定义更改时,它们是否必须更改或更新?任何见解将不胜感激。 干杯。 最佳答案 FILE.DDF 将底层 Btrie
是否有任何库可以查询 Btrieve 数据库而无需从 Pervasive 购买东西?我希望使用 C# 或 Python 进行编码。 最佳答案 据我所知这是不可能的。它不是一个开源数据库,因此为其编写驱
我想在 Pervasive 中使用 case 语句,因为它也缺乏对 Coalesce 的支持。但似乎 Pervasive 8 也缺乏对 Case 语句的支持。 所以我想检查是否有替代解决方案来解决我的
对不起,这个关键字对我来说没有任何意义...有人可以给我一个定义吗? 提前致谢... 最佳答案 这是一个品牌。 http://pervasive.com/这是他们的数据库产品的链接 http://ww
在我的 cygwin 机器上安装了 Ocaml,但简单的编译失败。正如您在下面的交互中看到的那样,权限很好。 OCAMLLIB 是对的;怎么了? $ cat t.ml print_string "hi
我以前从未接触过 PervasiveSql,现在我有一堆 .ddf 和 .Btr 文件。我读到我所要做的就是在控制中心创建一个新数据库并指向包含这些文件的文件夹。 当我这样做并查看数据库时,其中没有任
任何人都可以帮助我解决我的问题,我正在搜索如何从 1 周开始普遍创建连接器,我无法找到解决方案,至少要继续前进,我遵循了预定义的链接 http://www.pervasive.com/Galaxy/P
我需要向我们的一位客户询问他们的 Pervasive DB 的数据库备份。我浏览了这方面的在线资料,令人惊讶的是,可用的信息非常少。感谢这方面的任何帮助。 主要有两个问题。 1) 我应该向客户索取哪些
我正在使用 普适 10 与 PCC (普遍控制中心),我需要将大量结果(超过 100 000 个)导出到 TXT 文件。我知道“以文本方式执行”是可能的,但此功能对我不起作用,因为在导出大约 20 0
我正在尝试编写一个小程序,用于针对旧的 Pervasive 9 数据库进行 CRUD 操作,但是一旦我尝试与 Drivermanager.getConnection 建立连接,它就会抛出 "java.
我正在寻找一种从 Pervasive 11 导出整个数据库、发送并导入到 MySQL 服务器的方法。我尝试将其导出到 xml 文件,但将其导入 MySQL 时遇到问题。 有什么想法吗? 最佳答案 你确
如何像命令一样创建 Pervasive SQL 转储文件mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql 适
如何为 Pervasive PSQL 创建连接器在Java 中? 如何为 Pervasive PSQL 创建连接器?我创建了一个示例连接器,但我不确定它是对还是错。 最佳答案 这是一个简单的程序,可以
我们有一个使用 Pervasive PSQL 数据库的现有闭源第三方应用程序。例如,PSQL 位于目录 c:\test 中,名称如 holiday.dat、offers.dat 等。我想在没有安装 P
我有一个使用 C++ 连接到的 Pervasive 数据库。 到目前为止我所有的查询都是参数化的,即 "SELECT USER.NAME FROM USER WHERE USER.ID = ?" ,
我正在尝试从 Ubuntu 14.04.4 服务器连接到在 Windows 10 上运行的 Pervasive Sql Server。 我正在使用以下服务尝试连接到服务器: FreeTDS unixO
我不知道如何通过 ODBC 从 Ubuntu Linux 64 位连接到 Windows Server 机器上的 Pervasive DB。 我安装了 unixodbc,然后是来自 here 的 32
我正在尝试让 Pervasive v10 客户端 ODBC 在 Centos 6 上运行。据我所知,没有 64 位 ODBC 客户端,因此我必须使用 32 位客户端。我终于成功安装了它,但没有出现错误
我是一名优秀的程序员,十分优秀!