Click here to Skip to main content
12,404,478 members (72,847 online)
Rate this:
Please Sign up or sign in to vote.
Hi Friends,

I have created windows application project using C sharp coding. In my project, i will be importing (.db) files using third party of SQLite . For reading the datas from (.db) file im using SQLiteConnection .
SQLiteConnection dataConnection = new SQLiteConnection();
            dataConnection.DataSource = FilePath;
            System.Data.DataTable tableschema = new System.Data.DataTable();
            SQLiteDataAdapter daTables = new SQLiteDataAdapter("SELECT * FROM sqlite_master WHERE type='table';", dataConnection);

            foreach (DataRow row in tableschema.Rows)
                string strSheetTableName = row["tbl_name"].ToString();
                string Query = "SELECT * FROM [" + strSheetTableName + "] ;";
                System.Data.DataTable dt = new System.Data.DataTable();
                dt.TableName = strSheetTableName;
                SQLiteDataAdapter daDatas = new SQLiteDataAdapter(Query, dataConnection);

The above coding is working properly but i am facing the problem is , if i import (.db) file which contains the Table structure as "Virtual Table" its throughing the error as SQLite error , no such module: rtree
. If i open the (.db) file in SQLite Manager means , one table is created in below coding format ,
CREATE VIRTUAL TABLE tablename USING rtree(ROWID, MinimumLatitude, MaximumLatitude, MinimumLongitude, MaximumLongitude)

So can any one suggest me to write a select query for the above virtual table . Smile | :)

Thanks in Advance . Smile | :)
Posted 25-May-13 0:23am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 25 May 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100