Bahatmut
Active member
Distinct in SQL Query-Problem Resolved
I am writing a more ecomplex program than my previous one, one requiring parsing out dinstinct entries from a table (there are about 5 distinct values in on column across 36000 records). Here is my question.
I am using the OleDbDataReader to retrieve the data, my query is
SELECT DISTINCT Category FROM Videos
However, every time I try and execute the reader, the debugger fails. It says that all needed components (Query string, Connection String, and Command) are correct, but it still fails.
And PLEASE don't rip into me for failure to use that POS the MS calls the DataAdapter/DataSet, it's like trying to read cyrillic languages crosseyed and expecting people to get it. (No offense to anyone who native can read cyrillic). Besides, I have NO NEED for a data grid, I am merely trying to populate 4 combo boxes from the database.
I am writing a more ecomplex program than my previous one, one requiring parsing out dinstinct entries from a table (there are about 5 distinct values in on column across 36000 records). Here is my question.
I am using the OleDbDataReader to retrieve the data, my query is
SELECT DISTINCT Category FROM Videos
However, every time I try and execute the reader, the debugger fails. It says that all needed components (Query string, Connection String, and Command) are correct, but it still fails.
And PLEASE don't rip into me for failure to use that POS the MS calls the DataAdapter/DataSet, it's like trying to read cyrillic languages crosseyed and expecting people to get it. (No offense to anyone who native can read cyrillic). Besides, I have NO NEED for a data grid, I am merely trying to populate 4 combo boxes from the database.
Last edited: