Found a good tradeoff to integrate SQLite databases

Hi,
sometimes ago I posted a question about integrating SQLite database in ODI an ODQ. SQLite is commonly used in many tools for PDA and also in many other places (sometimes with a different file extension, but it simple to detect the true content).
This because is a single file db as Access but is free with all can be needed for small but sophisticated apps.
I received a post about duplicate another technology and customize that. It could a solution if no other solution could work, being time expensive.
I found a better solution: DBconvert for SQLite and MySQL (http://www.dbconvert.com/) . It support:
- full schema recreation / update on the target (in this case we are interested to go towards MySQL)  with PK FK etc.
- any number of sessions (named job to run different tasks)
- run from command line with any external scheduler or with an internal scheduler set from the gui
All this at 79 $, so we could take care of the information business while it makes the loading.
When data are in a MySQL database they will be reachable with all the full supported ODI components for MySQL.
Hope this could be useful to others.
Thanks
Fabio D'Alfonso
http://www.fabiodalfonso.com

Just to give an update.
I got a license yesterday (the trial works with a 50 records limit per table, with no expiry) and started to use it.
It uses the windows scheduled tasks to schedule operations and that works very well. In my case (as it can happen to others in enterprises) I needed to schedule the loads by the mean of an external scheduler.
The reason is that in this way we can trigger the file close (no matter how much time it takes to load) instead than the file presence.
So I can demand the load job on the remote pc after the file close on the remote pc generates a trigger on the event console.
I just had to make some think on getting the load working. It is common to get similar problems in such a cases, because the execution context of the workload agent is different from that of the interactive execution. The solution I found is quite simple:
Create a scheduled task on the client pc (on centrally shared depot) to schedule the load.
Then disable the schedule (which does not prevent the manual execution).
Demand the job in the enterprise workload to manually run the scheduled task using the schtasks /Run /TN loadtaskname
That is all
Fabio D'Alfonso
http://www.fabiodalfonso.com

Similar Messages

  • SQLITE database has no tables on device?

    Hello -
    When I try to run my app on my iPhone, the sqlite database is found, etc., HOWEVER, when I query it, it says the table doesn't exist. In fact none of the tables do.
    Do I have to do something special to get the database and its tables over to the phone itself?
    Thanks

    Is the database that's part of the application bundle populated, or is it only the database that was created in the simulators Documents folder that is populated?

  • How to copy sqlite database from applicationDirectory to documentsDirectory

    I am having problems using the ‘File’ function in Adobe Flex to copy a sqlite database from the read only applicationDirectory to the users documentsDirectory.  When I use the code below the only thing that appears in the user documentsDirectory is a 1k to 4k file.  The actual file size of the database is around 350k.
    Am I not giving the file enough time to copy over?
    I am developing on a Mac but I think I remember duplicating the error on a PC as well.  This bug has been keeping me from launching my app for far too long.  Any ideas would be appreciated.
    Here is the code I am using:
    public function copyDB():void
              var dbFile:File = File.applicationDirectory.resolvePath("db/myDataStorage.db");
              var dbWorkedFile:File = File.documentsDirectory.resolvePath("myDataStorage.db");
              if(!dbWorkedFile.exists){
                        trace("db Does Not Exist");
                        dbFile.copyTo(dbWorkedFile);
              } else {
                        trace("db Exists");
                        //The database has already been installed.  Launch app.
              dbConn = new SQLConnection();
              dbConn.openAsync(dbWorkedFile);
    I got the above code from this Adobe Cookbook recipe:
    http://cookbooks.adobe.com/post_Include_existing_SQLite_database_in_an_AIR_applica-10483.h tml
    Thanks

    I got it working. 
    I tried the copyToAsync method and it did not work.  While testing the copyToAsync I found a path that brought me to the
    'preinitialize' phase of the application startup sequence. 
    I fixed it by calling my copyDB() function from the 'preinitialize' call in the windowedApplication tag like:
    preinitialize="copyDB()".
    I had been calling it from the applicationComplete phase of startup.  Now it seems so obvious.
    Thanks again for sending me down the path that finally fixed it.

  • SqLite database persistence on mobile air application

    Hi, I'm Fabio from Italy. I'm developing a flex mobile application running on iPad, that application stores user settings in a local sqlite database on documentsDirectory. I've noticed that folder is destroyed and recreated each time the application is updated, and this is not good for user data . Is there any way to store that database in a folder that's NOT involved in the application uninstall/update procedure?
    Thank to all!

    You can't write anything to the applicationDirectory.
    Use File.applicationStorageDirectory instead
    Also you get path and do not wrtite to it anyting
    var jpgEncoder:JPGEncoder = new JPGEncoder(90);
    var byteArray:ByteArray = jpgEncoder.encode( bitmapData );
    // set an filename
    var filename:String = "cool-wallpaper.jpg";
    // get current path
    var file:File = File.applicationDirectory.resolvePath( filename );
    // get the native path
    var wr:File = new File( file.nativePath );
    // create filestream
    var stream:FileStream = new FileStream();
    //  open/create the file, set the filemode to write; because we are going to save
    stream.open( wr , FileMode.WRITE);
    // write your byteArray into the file.
    stream.writeBytes ( byteArray, 0, byteArray.length );
    // close the file. That’s it.
    stream.close();
    Try to use:
    // get current path
    var file:File = File.applicationDocumentsDirectory.resolvePath( filename );
    //  open/create the file, set the filemode to write; because we are going to save
    stream.open( file , FileMode.WRITE);

  • Image not storing in SQLite Database

    Hi All
    I am creation an application in WPF C# in which i have created an Ink Canavs 
    now i want to insert the InkCanvas  Data or stockes in SQLite Database for that i hv created an folder in my application
    and on"btnSaveCanvasImg" button Clicked i am saving the image of InkCanvas in a folder and on "btnSaveImgInDatabase" button clicked The saved image stored in the database 
    But when i clicked on"btnSaveCanvasImg" button image saved in folder , but when clicked on "btnSaveImgInDatabase" button the image doesn't store in the database.
    following is my code
    XML:-
    <Window x:Class="InkCanvasInDatabase.MainWindow"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            Title="MainWindow" Height="800" Width="600">
        <Grid>
            <InkCanvas Name="MainInkCanvas" HorizontalAlignment="Left" Height="500" VerticalAlignment="Top" Width="595">
                <InkCanvas.Background>
                    <ImageBrush ImageSource="C:\Testimonial_Project\Assets\Images\notePaper.png"/>
                </InkCanvas.Background>
            </InkCanvas>
            <Button x:Name="btnSaveCanvasImg" Content="Save Canvas Image" HorizontalAlignment="Left" Margin="33,599,0,0" VerticalAlignment="Top" Width="200" Height="51"
    FontSize="20" Click="btnSaveCanvasImg_Click"/>
            <Button x:Name="btnSaveImgInDatabase" Content="Save Image In Database" HorizontalAlignment="Left" Margin="281,599,0,0" VerticalAlignment="Top" Width="238" Height="51"
    FontSize="20" Click="btnSaveImgInDatabase_Click"/>
        </Grid>
    </Window>
    C# Code:-
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Data;
    using System.Windows.Documents;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Imaging;
    using System.Windows.Navigation;
    using System.Windows.Shapes;
    using System.Windows.Ink;
    using System.Windows.Ink.AnalysisCore;
    using Microsoft.Win32;
    using System.IO;
    using System.Data.SQLite;
    namespace InkCanvasInDatabase
        /// <summary>
        /// Interaction logic for MainWindow.xaml
        /// </summary>
        public partial class MainWindow : Window
            string imagename;
            public MainWindow()
                InitializeComponent();
            public void loadInkAnalyzer()
                InkAnalyzer theInkAnalyzer = new InkAnalyzer();
                theInkAnalyzer.AddStrokes(MainInkCanvas.Strokes);
                AnalysisStatus status = theInkAnalyzer.Analyze();
                if (status.Successful)
                    saveInkCanvasBitmap();
                else
                    MessageBox.Show("Recognition Failed");
            public void saveInkCanvasBitmap()
                RenderTargetBitmap rtb = new RenderTargetBitmap((int)MainInkCanvas.Width, (int)MainInkCanvas.Height, 0,0, PixelFormats.Default);
                rtb.Render(MainInkCanvas);
                BmpBitmapEncoder encoder = new BmpBitmapEncoder();
                encoder.Frames.Add(BitmapFrame.Create(rtb));
               // FileStream fs = File.Open(@"C:\inkCanvas_Images\test.jpg", FileMode.Create);
                FileStream fs = File.Open(@"C:\Users\xeniun1\Desktop\24.02.2015 Xenium_Project\23.02.2015 InkCanvas\InkCanvasInDatabase\InkCanvasInDatabase\InkCanvas_Images\.jpg", FileMode.Create);
                encoder.Save(fs);
                fs.Close();
            public void insertImgInDatabase()
                byte[] signature;
                using (MemoryStream ms = new MemoryStream())
                    MainInkCanvas.Strokes.Save(ms);
                    signature = ms.ToArray();
                string stConn = @"Data Source=inkCanvas_DB.db;Version=3";
                SQLiteConnection sqliteConn = new SQLiteConnection(stConn);
                sqliteConn.Open();
                string sql = "INSERT INTO User_Details (User_Text) VALUES (@Sig)";
                SQLiteCommand comm = new SQLiteCommand(sql, sqliteConn);
                comm.Parameters.AddWithValue("@Sig", signature);
                comm.ExecuteNonQuery();
           private void btnSaveCanvasImg_Click(object sender, RoutedEventArgs e)
                loadInkAnalyzer();
                //MainInkCanvas.Strokes.Clear();
                MessageBox.Show("Ink Canvas Save as Image");
            private void btnSaveImgInDatabase_Click(object sender, RoutedEventArgs e)
                insertImgInDatabase();
                MainInkCanvas.Strokes.Clear();
                MessageBox.Show("Ink Canvas Image saved in Database");
    Plz provide solution for this 
    Regards

    Please close your previous threads by marking helpful posts as answer before you start a new one.
    The type of the image columns should be BLOB. And make sure that you are looking at the inkCanvas_DB.db in the output folder of your .exe ([your_project_foder]/bin/Debug or [your_project_foder]/bin/Debug) because it is this database that the data gets written
    to unless you specify an absolute path in the connection string:
    string stConn = @"Data Source=C:\Your_Project_Folder\inkCanvas_DB.db;Version=3";
    Please upload a reproducable sample of your issue to OneDrive and post the link to it here for further help.
    And please remember to close your threads by marking helpful posts as answer.

  • How to determine the connection string to a SQLite database, in C# code

    Hello. I'm trying to figure out how to specify the connection string to a SQLite database, I would like to access using the following code:
    string connectionString = null;
    SqlConnection connection;
    SqlCommand command;
    SqlDataAdapter adapter = new SqlDataAdapter();
    DataSet ds1 = new DataSet();
    string sql = "SELECT DataName, Data, Id, UserId, DateLastUpdated FROM MainTable";
    connectionString = "Data Source=C:\\SQLITEDATABASES\\SQLITEDB1.sqlite;Version=3;";
    connection = new SqlConnection(connectionString);
    try
    connection.Open();
    command = new SqlCommand(sql, connection);
    catch
    The value I assigned to the variable connectionString, in the code above, I obtained somewhere from the Internet. It does not work. I'm using Visual Studio 2013, against the file sqlite-netFx451-setup-bundle-x86-2013-1.0.96.0.exe, which
    I installed, and got from
    here.
    My application's App.config file looks as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
    <configSections>
    </configSections>
    <connectionStrings>
    <add name="DC_Password_Saver.Properties.Settings.DC_Password_SaverConnectionString" connectionString="data source=&quot;C:\Users\patmo_000\Documents\Visual Studio 2013\Projects\DC Password Saver\DC Password Saver\DC Password Saver.db&quot;" providerName="System.Data.SQLite.EF6"/>
    </connectionStrings>
    <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1"/>
    </startup>
    </configuration>
    I tried to use the value assigned to connectionString in the XML settings above, replacing single backslash characters with double backslash characters, because the Visual Studio editor flagged them as unrecognizable, and wound up with the
    following.
    SqlDataAdapter adapter = new SqlDataAdapter();
    DataSet ds1 = new DataSet();
    string sql = "SELECT DataName, Data, Id, UserId, DateLastUpdated FROM MainTable";
    connectionString = "data source=&quot;C:\\Users\\patmo_000\\Documents\\Visual Studio 2013\\Projects\\DC Password Saver\\DC Password Saver\\DC Password Saver.db&quot;";
    connection = new SqlConnection(connectionString);
    The above code however does not work either. So again, does anyone know how I can specify in C# code, a connection string to access my SQLite database? Thanks in advance for your reply.

    What does SQLite connection strings has to do with WPF?
    You will find some valid connection strings here:
    https://www.connectionstrings.com/sqlite/
    But you cannot use the SqlConnection class to connect to a SQLite database. You will need to download and add a reference to the System.Data.SQLite library and then use the SQLiteConnection class:
    connection = new System.Data.SQLite.SQLiteConnection(connectionString);
    try
    connection.Open();
    command = new System.Data.SQLite.SQLiteCommand(sql, connection);
    catch
    Please refer to the following article for more information and an example of how to connect and read and write data from an SQLite database using C#:
    http://blog.tigrangasparian.com/2012/02/09/getting-started-with-sqlite-in-c-part-one/.
    There is contains a link where you can download the required assemblies.
    Hope that helps.
    Please remember to mark helpful posts as answer to close your threads and then start a new thread in an approproate forum if you have a new question.

  • [SOLVED] PowerDNS (pdns) - SQLite database '...' does not exist yet

    PowerDNS 3.2-5 is having some issues connecting to my backend database (sqlite3).
    beta powerdns # tail /var/log/errors.log
    May 7 20:12:41 localhost pdns[19098]: Caught an exception instantiating a backend: Unable to launch gsqlite3 connection: SQLite database '/etc/powerdns/database.sqlite' does not exist yet
    But when i do:
    beta powerdns # sqlite3 /etc/powerdns/database.sqlite
    SQLite version 3.7.16.2 2013-04-12 11:52:43
    Enter ".help" for instructions
    Enter SQL statements terminated with a ";"
    sqlite> select * from domains;
    1|<myhostname>|||NATIVE||
    sqlite>
    sqlite3 It fetches the records and domains to my liking but not PowerDNS.
    Same thing goes for a blank db without any domains or records, i can query it but not PowerDNS.
    Followed this guide in order to setup the proper tables and columns: http://doc.powerdns.com/html/gsqlite.html#idp9379264
    (without the DNSSEC part, i'll give that a go later on)
    It obviously loads the sqlite3 module, and tries to connect to the backend, which doesn't work, so the ArchLinux package is fine i'm guessing.
    More info:
    * Link to package: https://www.archlinux.org/packages/comm … 6_64/pdns/
    * chmod == 777
    * chown == nobody:nobody (and tried root:root as default)
    * running as root (not pdns)
    Last edited by Torxed (2013-05-08 10:52:05)

    Solved it.
    The guides are vague in this regard but once you've just read the config twice you'll understand the logic.
    First of all, no absolute paths for sqlite3, it should be:
    launch=gsqlite3
    gsqlite3-database=database.sqlite
    Secondly, find your chroot, and point it to your database location or put your database here (whichever):
    chroot=/var/empty
    The folder structure should be:
    /var/empty/database.sqlite
    And this py pointing to ./database.sqlite when starting sqlite3 in pdns, it should be able to lock on to the database.
    Peachy!

  • Anyone here found a good replacement for Version Cue?

    First, yes I realize this is a Photoshop forum. :-P I also posted this in the Version Cue section, but that forum hasn't seen any action in a month so I thought I'd pop on over here too. I'm assuming there are a few Photoshop users in here that use some kind of file management software.
    At my company we decided a while back we'd set up Version Cue, and of course it got put off. Today I learned Version Cue is getting ditched, and isn't even included in CS5. (http://www.adobe.com/products/versioncue/)
    So,  I'm wondering if any of you have moved on and found a good alternative  option. Version Cue has some very useful things to offer, in theory if  not in practice, so it would be great if there is something out there  that can accomplish the same things. If it's relevant, we use both Windows and Mac here at work.
    I've never used a digital assets manager so am open to ideas. I'm assuming that we'd want:
    • Versioning of documents (to roll-back to previous versions)
    • File storage
    • Sharing (perhaps a check-in, check-out system)
    • Commenting ability would be a bonus
    • Multiple users with variable permissions
    • Compatibility with Adobe Drive (allowing access to behind the scenes Adobe data)
    Anyone had any success, have any suggestions?
    Thanks!

    Here is how to put Mac widgets on your desktop: http://discussions.apple.com/thread.jspa?messageID=6292560&#6292560
    And here is a iCal widget: http://benkazez.com/icalevents.php
    It doesn't put your to-do list on there, so there is this widget: http://www.bluehenley.com/products/dobedo/
    Hope this is more of what you wanted.

  • Is it possible to to use SQlite database as an External Content type?

    Hi guys,
        I need some help in accessing data from an external database(SQlite) and use it in sharepoint 2010.  I have a list in sharepoint 2010 but some of the fields must come from SQlite database.  Whenever the list is updated, the corresponding
    fields from SQlite database should also be updated. 
       I've been looking on some examples on using external content types but I've only encountered examples using SQL server. I'm new to sharepoint 2010 and I have little idea to get this done.  Can someone kindly assist me on this? 
    Thank you very much.
    Regards,
    Peter

    Hi Peter,
    SharePoint is designed to use Business Connectivity Services when talking to external data sources.
    The Microsoft Business Connectivity Services (BCS) can connect to external data from the following types of databases:
    Microsoft SQL Server
    Oracle
    OLE DB
    ODBC
    So you may connect to SQLite through ODBC. Take a look at this example how to connect to MySQL through ODBC
    Connecting MySQL using BCS. You may create an External Content Type for SQLite the same way.
    Dmitry
    Lightning Tools Check
    out our SharePoint tools and web parts |
    Lightning Tools Blog | Мой Блог

  • Please tell me the query,If i want to fetch before 5 days data into sqlite database in ios ?

    Please tell me the query,If i want to fetch before 5 days data from sqlite database in ios ?

    kumar190 wrote:
    Please Can you send me the link of Sq-lite(Making own Schema). Which will be help full for me...
    Here is the general concept for a database schema: http://en.wikipedia.org/wiki/Database_schema
    This is how you would create a table in SQLite: https://sqlite.org/lang_createtable.html

  • Including sqlite database in a windows air installer

    I am trying to create a cross platform air installer that uses a sqlite database.
    This is the code I use to copy the database from the installer to the users application directory:
    var dataFile:File = File.applicationDirectory.resolvePath("data/myDataStorage.db");
    var dataUserFile:File = File.documentsDirectory.resolvePath("myDataStorage.db");
    When using the database I access it here:
    var file:File = File.documentsDirectory.resolvePath("myDataStorage.db");
    This works great on a mac.  On a PC it does not work.  Can anyone recommend a resource or give me a tip or two?
    Thanks

    I have been looking into this problem.  It turns out that it is not just a Windows problem it also happens on a Mac.  Here is what is happening:
    I am trying to copy a sqlite .db from the read only application directory to the users documents directory.
    First I setup these vars:
        var dbFile:File =  File.applicationDirectory.resolvePath("db/myDataStorage.db");
         var dbWorkedFile:File =  File.documentsDirectory.resolvePath("myDataStorage.db");
    If I do this it works:
    dbFile.copyTo(dbWorkedFile, true);  //If I set the overwrite param to 'true' then it works.
    If I use this code:
    dbFile.copyTo(dbWorkedFile);
    or
    dbFile.copyTo(dbWorkedFile, false);
    I get the following error:
    Error #3012: Cannot delete file or directory.
        at flash.filesystem::File/copyTo()
    The funny thing is that I the destination documents directory will get a 4k blank file when the error occurs.  In addition if I try the same copy code on an image I get the same error but the whole image does get copied.
    In the end I want my code to do something like the following so that it copies the database over only if it does not exist.  If I run this code now I get a 4k .db file and a 3012 error.  Any ideas?
    public function copyDB():void
                    var dbFile:File = File.applicationDirectory.resolvePath("db/myDataStorage.db");
                    var dbWorkedFile:File = File.documentsDirectory.resolvePath("myDataStorage.db");
                    if(!dbWorkedFile.exists){
                        trace("db Does Not Exist");
                        dbFile.copyTo(dbWorkedFile);
                    } else { 
                        trace("db Exists so do nothing"); 
                    dbConn = new SQLConnection(); 
                    dbConn.openAsync(dbWorkedFile); 

  • I have been interested in how lightroom uses the catalog so was poking around a backup of the catalog. I found it rather concerning that although the database (catalog) is pretty well designed, there is no referential integrity defined or enforced.

    I have been interested in how lightroom uses the catalog so was poking around a backup of the catalog.  I am a database administrator and I found it rather concerning that although the database (catalog) is pretty well designed, there is no referential integrity defined or enforced. This is non-standard practice and could well be the source of corrupt catalogs I have seen many people complain about. I would strongly recommend the developers modify the catalog and adopt best practices if they want to improve the stability of Lightroom and the catalog.

    I would imagine that data integrity is not enforced for performance reasons. In a closed environment like LR where the application has complete control over the data, enforcing data integrity may not be worth the performance hit. Often what is done in an environment like this is to have data integrity on in test environments which would expose data integrity bugs but where the impact of performance is low. In "production" it is then turned off to get as much performance as possible. I would say there are many more complaints about performance than corrupt catalogs. And corrupt catalogs are more likely due to interruptions in writing to the catalog (like crashes, backups or dropbox activity while LR is running, etc). Data integrity would not help in these cases as they are outside the databases control.

  • I want to know how tabs are determined in the places.sqlite database ??

    I want to know how tabs can be known in the places.sqlite database..Am doing a project on today's browsing habits.Is there any way of finding this in the database.I opened the database through add-on..I really need help!!

    Tabs aren't stored in the places.sqlite. Only bookmarks and history items are stored in that file.
    * SQLite Manager: https://addons.mozilla.org/firefox/addon/sqlite-manager/
    Tabs and windows are stored in the sessionstore.js file.
    *http://kb.mozillazine.org/sessionstore.js
    * http://forums.mozillazine.org/viewtopic.php?f=38&t=622036&start=60&p=12098147#p12098147

  • Any one found any good templates to use with BC?

    Hey all,
    just wondering if anyone has found some good templates I can use for ecommerce sites
    Thanks,
    Dan

    BC is a relativly unique CMS and the type of template depends on your skil levels with the system and HTML, CSS, Javascript etc.
    http://www.tribevita.com/ is a great source for ready to go made BC templates.
    BC itself has some pre-made templates when you make an account you can choose from. The latest ones offfer more features but are a little more complex compared to the older ones using things like jQuery for fading banners etc.
    You can obtain any sort of stand alone HTML only template from a number of sites such as Template Monster which you can then work to transition into BC converting them into templates, replacing elements with web apps, modules and content holders etc. This of course requires people to have  good to high knowledge of BC and HTML, CSS.... etc.

  • How to connect to and communicate with an SQLite database in AIR/Flex

    Hey guys,
    I recently decided I would try programming a vocabulary-training program in AIR, so I could use it on Linux as well. I got stuck pretty soon. I am trying to connect to a local SQLite database and I obviously fail epically. Posting the source code of the application here:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
       <mx:Script>
          <![CDATA[  
               import flash.filesystem.File;
              import flash.data.*;
             import mx.controls.Alert; 
                      private var dbFile:File;
                   private var conn:SQLConnection;
                   // -- AUTO INIT FUNCTIONS --------------------------------------------------- /
                   private function init():void {
                        // Create a File Reference to the Included DB
                        dbFile = File.applicationDirectory.resolvePath( "../slovniky.db" );
                        // Create SQL Connection
                        conn = new SQLConnection();
                        // Event Listener that will tell us when the DB is opened
                        conn.addEventListener(SQLEvent.OPEN, openSuccess);
                        // Event Listener that will tell us if an error occurs
                        conn.addEventListener(SQLErrorEvent.ERROR, openFailure);
                   // -- EVENT HANDLERS -------------------------------------------------------- /
             private function starter() :void {
                  slovickoEn.enabled = true;
                  nazor.enabled = true;
                  odeslat.enabled = true;
                  zrusit.enabled = true;
                  start.enabled = false;
                  // Otevírám spojení s databází v asynchroním módu
                   conn.openAsync( dbFile );
             private function openSuccess( event:SQLEvent ):void {
                        // Pokud se spojení povede!
                        Alert.show("Spojení se zdařilo!");
               private function openFailure( event:SQLEvent ):void {
                        // Pokud spojení selže!
                        Alert.show("Spojení se nezdařilo!")
             private function kontrola() : void {
                  if (nazor.text != "") {
                       if (nazor.text == "Pes") {
                       Alert.show("Správně!");    
                       else {
                       Alert.show("Špatně!! " + "Napsané slovíčko bylo " + nazor.text);     
          ]]>   
       </mx:Script>
       <mx:VBox width="400" height="200"
                   horizontalCenter="0" verticalCenter="0" backgroundColor="#FFFFFF"
                   paddingBottom="20" paddingLeft="20" paddingRight="20" paddingTop="20"
       >
          <mx:HBox width="100%" verticalAlign="middle" horizontalAlign="center">
             <mx:Label text="Anglicky:"/>
             <mx:TextInput id="slovickoEn" editable="false" text="Dog" enabled="false"/>
          </mx:HBox>
          <mx:HBox width="100%" verticalAlign="middle" horizontalAlign="center">
             <mx:Label text="Česky:"/>
             <mx:TextInput id="nazor"  enter="kontrola()" enabled="false"/>
          </mx:HBox>
          <mx:HBox width="100%" horizontalAlign="center">
             <mx:Spacer width="50" height="10"/>
             <mx:Button id="odeslat" label="Odeslat" color="#0D8401" click="kontrola()" enabled="false"/>
             <mx:Button id="zrusit" label="Zrušit" color="#0D8401" enabled="false"/>
          </mx:HBox>
          <mx:HBox width="100%" horizontalAlign="center">
             <mx:Spacer width="50" height="10"/>
             <mx:Button id="start" label="Start" color="#0D8401" click="starter()" enabled="true"/>
          </mx:HBox>
       </mx:VBox>
    </mx:WindowedApplication>
    The Run of the program tells me this:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
         at pes/starter()[C:\air\projects\pes\src\pes.mxml:45]
         at pes/__start_click()[C:\air\projects\pes\src\pes.mxml:93]
    I would appreciate any help or a how-to. I am an absolute beginner with some experience from HTML, CSS, PHP and rarely JS. What am I doing wrong? File attached for easier manipulation as well.
    Erthy

    Hi,
    Here is the complete example for the same with the code.Let me know if you have any issue with this.
    http://shardulbartwal.wordpress.com/2008/04/14/adobe-air-and-sqlite-connectivity/
    with Regards,
    Shardul Singh Bartwal

Maybe you are looking for