[Firebird-net-provider] Creating a Database using ADO.Net Data Provider For Firebird

2008-09-17 Thread Meftah Tayeb
hi,
i have the 2.1.0.0 version of the Firebird ADO.Net 2.0 Data Provider
i want to create a New Database (a run time)
in the DotNet-Firebird semples code, the Function CreateDatabase () is called.
but i dont have it!
i have only CreateCommand
any help ?
thanks-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


Re: [Firebird-net-provider] Creating a Database using ADO.Net Data Provider For Firebird

2008-09-17 Thread Mercea Paul
Hi

 

I'm using this:

 

#region ConnectionString

///

///Connection String

///

FbConnectionStringBuilder cs = new
FbConnectionStringBuilder();

cs.UserID = USERDB;

cs.Password = userdb;

cs.Database = txtDbNew.Text;

cs.DataSource = txtHost.Text;

cs.Port = Convert.ToInt16(txtPort.Text);

cs.Dialect = 3;

cs.Charset = NONE;

cs.Role = ;

cs.ConnectionLifeTime = 0;

cs.ConnectionTimeout = 15;

cs.Pooling = Convert.ToBoolean(true);

cs.PacketSize = 8192;

cs.ServerType = 0;

cs.ServerType = FbServerType.Default;

 #endregion

 

#region CreateDatabase

 

///

///Create database

///

fbConnNewDB.ConnectionString = cs.ToString();



 

if (File.Exists(txtDbNew.Text))

{

FbConnection.DropDatabase(cs.ToString());



}

try

{

FbConnection.CreateDatabase(cs.ToString(),
Convert.ToInt16(cmbPagesize.SelectedItem.ToString()), true, true);

}

catch (FbException fbexcr)

{

MessageBox.Show(fbexcr.ToString());



}



#endregion

 

Regards,

Paul

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Meftah Tayeb
Sent: Wednesday, September 17, 2008 3:48 PM
To: firebird-net-provider@lists.sourceforge.net
Subject: [Firebird-net-provider] Creating a Database using ADO.Net Data
Provider For Firebird

 

hi,

i have the 2.1.0.0 version of the Firebird ADO.Net 2.0 Data Provider

i want to create a New Database (a run time)

in the DotNet-Firebird semples code, the Function CreateDatabase () is
called.

but i dont have it!

i have only CreateCommand

any help ?

thanks

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


Re: [Firebird-net-provider] Creating a Database using ADO.Net Data Provider For Firebird

2008-09-17 Thread Jiri Cincura
It's static. You're probably looking for it at some instance.

-- 
Jiri {x2} Cincura (CTO x2develop.com)
http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider