c# - How to programmatically create firebird database? -
i have computer_with_database superserver firebird (windows) installed. need make c# application connect computer_with_database , create file .fdb example database.fdb later able connect other computers using example part of string like:
computer_with_database\c:\database.fdb
but how using fb api in c#?
with code can create database:
... using firebirdsql.data.firebird; ... fbconnectionstringbuilder builder = new fbconnectionstringbuilder(); builder.datasource = "computer_with_database"; builder.userid = "sysdba"; builder.password = "m*******y"; builder.database = @"c:\database.fdb"; builder.servertype = fbservertype.default; fbconnection.createdatabase(builder.connectionstring);
Comments
Post a Comment