I know I can connect to the database, and I have the right port info and version of the connector, because I am able to connect using tools other than Livecode (I can browse the database with QTODBC 6.1, for example - more about that later)
I am creating my connection to the database and getting a databse ID back, without any error.
I then try to do the following:
Code: Select all
put revDataFromQuery(tab, return, gSCDBID, the text of field "query") into field "testing"
Code: Select all
SELECT * FROM cm3rm1 where number="CH1094900"
Code: Select all
SELECT * FROM cm3rm1
Both return nothing, not even an error.
The name of the table is correct (cm3rm1), and I know there should be a single record where number contains CH1094900
However, I am seeing lots of weirdness when I browse the database using QTODBC 6.1 - for example if I have it show me the contents of number for a single record I see "CH" If I ask for it to list the contents of number for all records in the database I get results like
CH
H1
10
09
94
49
90
00
Like what should be a single field in a single record is spread across several rcords.
Clearly there is something strange going on. I wanted to validate that what I am doing in Livecode seems right though, since I have never tried writing my own SQL before and using the Livecode commands - used the query builder the one time I needed to do something like this years ago (with a different database)
Thanks for any help.