Hello,
I am trying to connect to an embedded database using the |DataDirectory|
keyword but without success.

My connectionstring is:
User=SYSDBA;Password=masterkey;DataSource=localhost;Database=|DataDirectory|\Database.fdb;Dialect=3;Charset=UTF8;ServerType=1;pooling=false;

The error I get when I try to connect is:

{"I/O error for file "\Database.fdb" Error while trying to open file"}
    FirebirdSql.Data.FirebirdClient.FbException: {"I/O error for file
"\Database.fdb" Error while trying to open file"}
    Data: {System.Collections.ListDictionaryInternal}
    HelpLink: Nothing
    InnerException: {"I/O error for file "\Database.fdb" Error while trying
to open file"}
    Message: "I/O error for file "\Database.fdb" Error while trying to open
file"
    Source: "FirebirdSql.Data.FirebirdClient"
    StackTrace: "   at
FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect()    at
FirebirdSql.Data.FirebirdClient.FbConnection.Open()    at
System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection,
ConnectionState& originalState)    at
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[]
datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand
command, CommandBehavior behavior)    at
System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32
startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior
behavior)    at System.Data.Common.DbDataAdapter.Fill(DataTable
dataTable)    at .......


Is the |DataDirectory| keyword supported in Net Firebird provider v2.5.1?

Yianni
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to