|
From: Γιάννης Μ. <yia...@gm...> - 2010-02-26 20:54:01
|
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
|