[IGNORE THE REST OF THIS THREAD - COULD NEVER GET THIS PLUGIN WORKING LIKE THE SQLITE PLUGIN SO ABANDONED IT]
On the back of the new SQLITE3 database plugin I\'ve created, I have also created a ODBC plugin.
For it to work, you will need to have already installed a suitable ODBC driver. You need to create an ODBC \"User Data Source\".
Anyway, this plugin is very much in need of testing and so I will call the current version v0.2 (25/07/2013).
Command Set
Command Set:-
ODBC OPEN DATABASE - a function returning an INTEGER value from (DatabaseID INTEGER, DatabaseFilename STRING, Username STRING, Password STRING)
ODBC CLOSE DATABASE - a function returning an INTEGER value from (DatabaseID INTEGER)
ODBC SAVE DATABASE - a function returning an INTEGER value from (DatabaseID INTEGER, DatabaseFileName STRING, Username STRING, Password STRING)
ODBC DATABASE EXIST - a function returning an INTEGER value from (DatabaseID INTEGER)
ODBC GET LAST ERROR$ - a function returning a STRING value from <*no parameters*>
ODBC TABLE EXIST - a function returning an INTEGER value from (DatabaseID INTEGER, TableName STRING)
ODBC TRUNCATE TABLE - a function returning an INTEGER value from (DatabaseID INTEGER, TableName STRING)
ODBC EMPTY TABLE - a function returning an INTEGER value from (DatabaseID INTEGER, TableName STRING)
ODBC DROP TABLE - a function returning an INTEGER value from (DatabaseID INTEGER, TableName STRING)
ODBC DELETE TABLE - a function returning an INTEGER value from (DatabaseID INTEGER, TableName STRING)
ODBC CREATE TABLE - a function returning an INTEGER value from (DatabaseID INTEGER, TableName STRING, ColumnsDefinitionsAndConstraints STRING)
ODBC RENAME TABLE - a function returning an INTEGER value from (DatabaseID INTEGER, OriginalTableName STRING, NewTableName STRING)
ODBC TABLE ROW COUNT - a function returning an INTEGER value from (DatabaseID INTEGER, TableName STRING)
ODBC TABLE COLUMN NAME$ - a function returning a STRING value from (DatabaseID INTEGER, TableName STRING, ColumnNumber INTEGER)
ODBC TABLE COLUMN INDEX - a function returning an INTEGER value from (DatabaseID INTEGER, TableName STRING, ColumnName STRING)
ODBC TABLE COLUMN DEFINITION$ - a function returning a STRING value from (DatabaseID INTEGER, TableName STRING, ColumnNumber INTEGER)
ODBC TABLE COLUMN SIZE - a function returning an INTEGER value from (DatabaseID INTEGER, TableName STRING, ColumnNumber INTEGER)
ODBC TABLE COLUMN COUNT - a function returning an INTEGER value from (DatabaseID INTEGER, TableName STRING)
ODBC TABLE CELL STRING$ - a function returning a STRING value from (DatabaseID INTEGER, TableName STRING, ColumnNumber INTEGER, RowNumber INTEGER)
ODBC TABLE CELL INTEGER - a function returning an INTEGER value from (DatabaseID INTEGER, TableName STRING, ColumnNumber INTEGER, RowNumber INTEGER)
ODBC TABLE CELL FLOAT - a function returning a FLOAT value from (DatabaseID INTEGER, TableName STRING, ColumnNumber INTEGER, RowNumber INTEGER)
ODBC BEGIN SQL QUERY - a function returning an INTEGER value from (DatabaseID INTEGER, SQLQuery STRING)
ODBC BEGIN SQL QUERY SPECIFIC - a function returning an INTEGER value from (DatabaseID INTEGER, TableName STRING, ColumnName1 STRING, ColumnValue1 STRING,[ ColumnName2 STRING,[ ColumnValue2 STRING,[ ColumnName3 STRING,[ ColumnValue3 STRING])
ODBC FURTHER SQL QUERY - a function returning an INTEGER value from (DatabaseID INTEGER, AdditionalSQLQuery STRING)
ODBC FIRST RECORD ROW - a function returning an INTEGER value from (DatabaseID INTEGER)
ODBC PREVIOUS RECORD ROW - a function returning an INTEGER value from (DatabaseID INTEGER)
ODBC NEXT RECORD ROW - a function returning an INTEGER value from (DatabaseID INTEGER)
ODBC GOTO RECORD ROW - a function returning an INTEGER value from (DatabaseID INTEGER, RowToGoTo INTEGER)
ODBC LAST RECORD ROW - a function returning an INTEGER value from (DatabaseID INTEGER)
ODBC RECORD COLUMN NAME$ - a function returning a STRING value from (DatabaseID INTEGER, ColumnNumber INTEGER)
ODBC RECORD COLUMN COUNT - a function returning an INTEGER value from (DatabaseID INTEGER)
ODBC RECORD ROW COUNT - a function returning an INTEGER value from (DatabaseID INTEGER)
ODBC RECORD CURRENT ROW STRING$ - a function returning a STRING value from (DatabaseID INTEGER, ColumnNumber INTEGER)
ODBC RECORD CURRENT ROW INTEGER - a function returning an INTEGER value from (DatabaseID INTEGER, ColumnNumber INTEGER)
ODBC RECORD CURRENT ROW FLOAT - a function returning a FLOAT value from (DatabaseID INTEGER, ColumnNumber INTEGER)
ODBC FINISH SQL QUERY - a function returning an INTEGER value from (DatabaseID INTEGER)
ODBC UPDATING SQL STATEMENT - a function returning an INTEGER value from (DatabaseID INTEGER, UpdatingSQLStatement STRING)
ODBC ADD COLUMN TO TABLE - a function returning an INTEGER value from (DatabaseID INTEGER, TableName STRING, ColumnDefinitionAndConstraint STRING)
ODBC INSERT ROW INTO TABLE - a function returning an INTEGER value from (DatabaseID INTEGER, TableName STRING, SpecifiedNamedColumns STRING, SpecifiedValuesForThoseColumns STRING)
ODBC DELETE ROWS FROM TABLE - a function returning an INTEGER value from (DatabaseID INTEGER, TableName STRING, WhereConditions STRING)
ODBC CREATE INDEX - a function returning an INTEGER value from (DatabaseID INTEGER, IndexName STRING, TableName STRING, ColumnName STRING)
ODBC DROP INDEX - a function returning an INTEGER value from (DatabaseID INTEGER, IndexName STRING)
ODBC DELETE INDEX - a function returning an INTEGER value from (DatabaseID INTEGER, IndexName STRING)
Total Number of Commands = 43
Let me know what you think.
[edit]
I can't post anything more here as it is too old but I can edit - I've had a go at a new ODBC plugin here:-
http://forum.thegamecreators.com/?m=forum_view&t=210586&b=8
a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...