永发信息网

使用flamerobin-0.9.3建立firebird embed2.5.3数据库

答案:1  悬赏:20  手机版
解决时间 2021-01-30 04:37
  • 提问者网友:风月客
  • 2021-01-29 12:22
以前没有用过FB,我把firebird所有文件复制到flamerobin文件夹中,



最佳答案
  • 五星知识达人网友:平生事
  • 2021-01-29 13:50
使用方法。只是在new一个FbConnection的时候,把连接字符串改动一下就可以: _connectionString="Database=roy;User=SYSDBA;Password=masterkey;server type=1";.注意,roy数据库是在alias配置文件里配置好的,user和password可以随便写,只要有这两项就可以;最关键的是 server type=1这一项表示使用embed的数据源。如果不指明type=1,则表示使用普通的数据库。这是 FirebirdSql.Data.Firebird.dll提供的功能了。至于firebird的ReadMe中这么说
Client access can be only via the local protocol, i.e. NOT a TCP/IP connection string that includes the server name "localhost" or IP address 127.0.0.1. The embedded server supports only the IPServer "local connect" to a database file path without a server name. The client must have exclusive access to the database file.
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯