michaelkrauklis
Programmer
I've used CDatabase objects sucessfully before. That's not the problem. My problem is I need to get data from my SQL server using ODBC, so CRecordset was the logical next step for me. Here is the code so far(odbc is my odbc source name and table is my table name that I wish to perform the query on):
Now when I run this code I get the error message "No columns were bound prior to calling SQLFetchScroll/SQLExtendedFetch"
Any input will be eternally helpful. Thanks! MYenigmaSELF:-9
myenigmaself@yahoo.com
"If debugging is the process of removing bugs, then programming must be the process of putting them in." --Dykstra
Code:
CDatabase db;
db.Open(odbc,false,true);
CRecordset *rs;
rs=new CRecordset(&db);
rs->Open(AFX_DB_USE_DEFAULT_TYPE,"SELECT * FROM "+table);
Any input will be eternally helpful. Thanks! MYenigmaSELF:-9
myenigmaself@yahoo.com
"If debugging is the process of removing bugs, then programming must be the process of putting them in." --Dykstra