
February 28th, 2011, 03:02 PM
|
|
Registered User
|
|
Join Date: Feb 2011
Posts: 1
Time spent in forums: 30 m 10 sec
Reputation Power: 0
|
|
|
Creating Databases with the .Net 2.5.2 Provider
I'm trying to create an embedded database with the Firebird .net Provider 2.5.2.0. I'm copying these files to the output directory:
fbembed.dll
firebird.conf
firebird.msg
icudt30.dll
icuin30.dll
icuuc30.dll
I also created a simple method to create a database:
Code:
public void CreateDatabase()
{
string connString = "servertype=1;database=FbSample.fdb;";
FbConnection.CreateDatabase(connString);
FbConnection conn = new FbConnection(connString);
conn.Open();
}
However, I get an error saying that the server type is invalid when I call the FbCreateDatabase.CreateDatabase method. Is there something that I'm missing from the connection string?
Thanks.
|