Menu

always get Unable to InitDB 5

Help
frank lin
2004-03-12
2004-03-12
  • frank lin

    frank lin - 2004-03-12

    always get Unable to  InitDB 5 database is locked
    platform: delphi 5,
    source code:
    unit Unit1;

    interface

    uses
      Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
      ExtCtrls, DBCtrls, Grids, DBGrids, Db, SLDataSet, SLDB;

    type
      TForm1 = class(TForm)
        SLDatabase1: TSLDatabase;
        SLDataSet1: TSLDataSet;
        DataSource1: TDataSource;
        DBGrid1: TDBGrid;
        DBNavigator1: TDBNavigator;
      private
        { Private declarations }
      public
        { Public declarations }
      end;

    var
      Form1: TForm1;

    implementation

    {$R *.DFM}

    end.

     
    • Michał Zaborowski

      That code don't have any information...
        Fill SLDatabase.DBName with ie. 'test.db' - then try to connect. By default if file does not exist SQLite creates it. In that case file is empty, so it's your job to fill it with data as well as structures.
        I'm working on examples... Job is going slowly but to the right direction. If you want to try it please email me.

       

Log in to post a comment.