Click here to Skip to main content
15,888,984 members
Home / Discussions / Database
   

Database

 
AnswerRe: Alternative to SOUNDEX? Pin
Wendelius29-Oct-08 8:05
mentorWendelius29-Oct-08 8:05 
GeneralRe: Alternative to SOUNDEX? Pin
Richard Jones29-Oct-08 9:15
Richard Jones29-Oct-08 9:15 
GeneralRe: Alternative to SOUNDEX? Pin
Wendelius29-Oct-08 9:36
mentorWendelius29-Oct-08 9:36 
GeneralRe: Alternative to SOUNDEX? Pin
Richard Jones29-Oct-08 9:40
Richard Jones29-Oct-08 9:40 
GeneralRe: Alternative to SOUNDEX? Pin
ChandraRam30-Oct-08 1:23
ChandraRam30-Oct-08 1:23 
QuestionSSIS - Multiple packages using the same sharepoint path Pin
notes4we29-Oct-08 3:03
notes4we29-Oct-08 3:03 
Questionhow to get in report watermark text Pin
imranafsari28-Oct-08 23:56
imranafsari28-Oct-08 23:56 
QuestionEmbedded Fire Bird - Programmatically creating a new database [solved] Pin
Harvey Saayman28-Oct-08 23:54
Harvey Saayman28-Oct-08 23:54 
Hey guys

i need to create a new database using embedded fire bird, at the moment ive got this...

private void btnCreateDatabase_Click(object sender, EventArgs e)
{
    // if valid data has been entered
    if (FieldsValidated())
    {
        try
        {
            // build connection string
            string fbConnectionString = string.Format("ServerType=1; Dialect=3; User={0}; Password={1}; Database={2};",
                                                      txtUserName.Text, txtPassword.Text, txtDbName.Text);

            //create db file
            FbConnection.CreateDatabase(fbConnectionString);

            // fire event that db has been created
            DatabaseCreated(this, new CreateFirebirdDbEventArgs(fbConnectionString));
        }
        catch (FbException ex)
        {
            MessageBox.Show("btnCreateDatabase_Click - FbException" + Environment.NewLine + ex.ToString());
        }
        catch (Exception ex)
        {
            MessageBox.Show("btnCreateDatabase_Click - Exception" + Environment.NewLine + ex.ToString());
        }
        finally
        {
            this.Dispose();
        }
    }
}


... this creates the file just fine, but how do i create the tables in that db?

Thanks

<edit>
I came across a FbBatchExecution object which seems to do the trick
</edit>

Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL

you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111

modified on Wednesday, October 29, 2008 6:31 AM

Questionincrement number Pin
susanhalim28-Oct-08 21:35
susanhalim28-Oct-08 21:35 
AnswerRe: increment number Pin
notes4we29-Oct-08 3:09
notes4we29-Oct-08 3:09 
AnswerRe: increment number Pin
PIEBALDconsult29-Oct-08 5:05
mvePIEBALDconsult29-Oct-08 5:05 
AnswerRe: increment number Pin
mahsa shahi1-Mar-14 7:09
mahsa shahi1-Mar-14 7:09 
Questioncategory tree like structure in sql Pin
S.Dhanasekaran28-Oct-08 21:13
S.Dhanasekaran28-Oct-08 21:13 
AnswerRe: category tree like structure in sql Pin
Wendelius29-Oct-08 8:00
mentorWendelius29-Oct-08 8:00 
Question[Message Deleted] Pin
kyi kyi28-Oct-08 17:22
kyi kyi28-Oct-08 17:22 
AnswerRe: Function problem Pin
balaji.t28-Oct-08 22:17
balaji.t28-Oct-08 22:17 
Questionmanaging database queries Pin
DSPCottage28-Oct-08 10:36
DSPCottage28-Oct-08 10:36 
QuestionSaving changes to a database via Windows forms Pin
danielhasdibs28-Oct-08 7:01
danielhasdibs28-Oct-08 7:01 
QuestionProblem with query pulling from AS400 Pin
missyd28-Oct-08 6:52
missyd28-Oct-08 6:52 
Questionexplain entity storingduef Pin
Member 564239427-Oct-08 21:03
Member 564239427-Oct-08 21:03 
QuestionEmbedding Pin
AnieMVC27-Oct-08 18:59
AnieMVC27-Oct-08 18:59 
QuestionMYSQL Help is needed Pin
Rameez Raja27-Oct-08 18:44
Rameez Raja27-Oct-08 18:44 
AnswerRe: MYSQL Help is needed Pin
Blue_Boy28-Oct-08 0:22
Blue_Boy28-Oct-08 0:22 
QuestionHow to Check Existing Record first then Insert otherwise update statement Pin
zjaffary27-Oct-08 16:57
zjaffary27-Oct-08 16:57 
AnswerRe: How to Check Existing Record first then Insert otherwise update statement Pin
Blue_Boy28-Oct-08 0:20
Blue_Boy28-Oct-08 0:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.