Click here to Skip to main content
13,044,551 members (59,888 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 . :)

Thanks in Advance . :)
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
Web01 | 2.8.170713.1 | Last Updated 25 May 2013
Copyright © CodeProject, 1999-2017
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