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

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -