Click here to Skip to main content
15,886,689 members
Home / Discussions / Database
   

Database

 
AnswerRe: problem for build a query Pin
i.j.russell7-Jan-10 3:05
i.j.russell7-Jan-10 3:05 
QuestionHow to make a query stronger in SQL Server Pin
Member 42602707-Jan-10 0:30
Member 42602707-Jan-10 0:30 
JokeRe: How to make a query stronger in SQL Server Pin
WoutL7-Jan-10 0:49
WoutL7-Jan-10 0:49 
AnswerRe: How to make a query stronger in SQL Server Pin
Jörgen Andersson7-Jan-10 1:04
professionalJörgen Andersson7-Jan-10 1:04 
AnswerRe: How to make a query stronger in SQL Server Pin
i.j.russell7-Jan-10 2:36
i.j.russell7-Jan-10 2:36 
QuestionSQL Calculation... Pin
Illegal Operation6-Jan-10 12:44
Illegal Operation6-Jan-10 12:44 
AnswerRe: SQL Calculation... Pin
_Damian S_6-Jan-10 14:36
professional_Damian S_6-Jan-10 14:36 
Question[SQLite3] handling returned data from PRAGMA table_info("table_name") in C#? Pin
bbranded6-Jan-10 9:36
bbranded6-Jan-10 9:36 
Hello,

I'm attempting to query a list of tables from an SQLite3 database and have come across the query PRAGMA table_info("table_name") in the SQLite docs.

Here is my code:

OdbcConnection DbConnection;
OdbcDataReader DbReader;

DbConnection = new OdbcConnection("DSN=" + odbcConnName);

DbConnection.Open();

OdbcCommand DbCommand = DbConnection.CreateCommand();
    //check to make sure column names are present
                DbCommand.CommandText = ("PRAGMA table_info(bandwidth_records)");
                DbReader = DbCommand.ExecuteReader();

                while (DbReader.Read())
                {
                    Trace.WriteLine(DbReader["type"].ToString());
                }

DbReader.Close();
DbConnection.Close();


However, DbReader.Read() is not returning true. Very weird.

Any ideas?


Thanks,

Matt
AnswerRe: [SQLite3] handling returned data from PRAGMA table_info("table_name") in C#? Pin
loyal ginger6-Jan-10 9:59
loyal ginger6-Jan-10 9:59 
QuestionRe: [SQLite3] handling returned data from PRAGMA table_info("table_name") in C#? Pin
Dimitri Witkowski6-Jan-10 10:23
Dimitri Witkowski6-Jan-10 10:23 
AnswerRe: [SQLite3] handling returned data from PRAGMA table_info("table_name") in C#? Pin
Dimitri Witkowski6-Jan-10 10:22
Dimitri Witkowski6-Jan-10 10:22 
GeneralRe: [SQLite3] handling returned data from PRAGMA table_info("table_name") in C#? Pin
bbranded7-Jan-10 5:55
bbranded7-Jan-10 5:55 
GeneralRe: [SQLite3] handling returned data from PRAGMA table_info("table_name") in C#? Pin
Dimitri Witkowski7-Jan-10 6:17
Dimitri Witkowski7-Jan-10 6:17 
GeneralRe: [SQLite3] handling returned data from PRAGMA table_info("table_name") in C#? Pin
bbranded7-Jan-10 6:38
bbranded7-Jan-10 6:38 
GeneralRe: [SQLite3] handling returned data from PRAGMA table_info("table_name") in C#? Pin
bbranded7-Jan-10 9:00
bbranded7-Jan-10 9:00 
GeneralRe: [SQLite3] handling returned data from PRAGMA table_info("table_name") in C#? Pin
Dimitri Witkowski7-Jan-10 9:08
Dimitri Witkowski7-Jan-10 9:08 
QuestionT-SQL Query Help Needed Pin
#realJSOP6-Jan-10 9:17
mve#realJSOP6-Jan-10 9:17 
AnswerRe: T-SQL Query Help Needed Pin
Corporal Agarn6-Jan-10 9:50
professionalCorporal Agarn6-Jan-10 9:50 
GeneralRe: T-SQL Query Help Needed Pin
#realJSOP6-Jan-10 12:23
mve#realJSOP6-Jan-10 12:23 
AnswerRe: T-SQL Query Help Needed Pin
Tim Carmichael6-Jan-10 10:44
Tim Carmichael6-Jan-10 10:44 
GeneralRe: T-SQL Query Help Needed Pin
#realJSOP6-Jan-10 12:24
mve#realJSOP6-Jan-10 12:24 
QuestionRun dynamic query Pin
mehrdadc486-Jan-10 4:19
mehrdadc486-Jan-10 4:19 
AnswerRe: Run dynamic query Pin
David Mujica6-Jan-10 4:39
David Mujica6-Jan-10 4:39 
AnswerRe: Run dynamic query Pin
Ashfield6-Jan-10 4:40
Ashfield6-Jan-10 4:40 
AnswerRe: Run dynamic query Pin
loyal ginger6-Jan-10 4:45
loyal ginger6-Jan-10 4:45 

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.