mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
27 lines
932 B
C#
27 lines
932 B
C#
using FirebirdSql.Data.FirebirdClient;
|
|
using FirebirdSql.Data.Isql;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.Debug.Common {
|
|
public static class Test {
|
|
static public void Execute() {
|
|
// http://www.firebirdsql.org/dotnetfirebird/create-a-new-database-from-an-sql-script.html
|
|
var xCSB = new FbConnectionStringBuilder();
|
|
xCSB.ServerType = FbServerType.Embedded;
|
|
xCSB.Database = @"m:\temp\Cosmos.cpdb";
|
|
|
|
FbConnection.CreateDatabase(xCSB.ToString());
|
|
|
|
using (var xConn = new FbConnection(xCSB.ToString())) {
|
|
var xExec = new FbBatchExecution(xConn);
|
|
//foreach (string cmd in script.Results) {
|
|
// xExec.SqlStatements.Add(cmd);
|
|
//}
|
|
//fbe.Execute();
|
|
}
|
|
}
|
|
}
|
|
}
|