From: Frode L. <fr...@li...> - 2004-01-17 21:54:00
|
Hello all, I'm a newcomer to this list. I'm writing an application in C# (with Visual Studio .NET) which is going to use a Firebird database. I have successfully been able to connect and query the example employee-database, but I'm struggling with creating my own database. I see in the object browser that there is supposed to be a method called CreateDatabase, but I seem unable to use it. Here is the code I use: string connectionString = "Database=C:\\PROGRAM FILES\\FIREBIRD\\EXAMPLES\\EMPLOYEE.FDB;" + "User=SYSDBA;" + "Password=masterkey;" + "Dialect=3;" + "Server=localhost"; IDbConnection dbcon = new FbConnection(connectionString); dbcon.ConnectionString = connectionString; dbcon.Open(); For some reason I am not able to use dbcon.CreateDatabase. Could anyone explain how to get this working? Or point me in the direction of a good C# example? I've already had a look at the ibphoenix.com site, to no avail. Also I'd like to understand what where to set SYSDBA and masterkey. Thanks Frode |