06.08.2005, 04:02 | #1 |
Участник
|
ODBCConnection Execute Select
Hello,
I am trying to execute Select using ODBCConnection. I constructed sql string and then tried to execute it. sqlstr = "SELECT [Order].order_status_id, Claim.claimstatus_id FROM [Order] INNER JOIN Claim ON [Order].claim_id=Claim.claim_id AND [Order].order_id=999999"; I get this error message. Does anybody know why? Message (18:53:36) 1952621871 999999 19526218 Cannot read a record in (). The SQL database has issued an error. [Microsoft][ODBC SQL Server Driver][SQL Server]Changed language setting to us_english. If I execute just this: sqlstr = "SELECT [Order].order_status_id, Claim.claimstatus_id FROM [Order] INNER JOIN Claim ON [Order].claim_id=Claim.claim_id"; I don't get the error. Thanks in advance. |
|
06.08.2005, 12:22 | #2 |
Lean Six Sigma
|
What type is [Order].order_id field?
|
|
06.08.2005, 13:33 | #3 |
Участник
|
when using filters, use the where clause instead
so: join Claim on Claim.field=Order.field WHERE Order.field=99999 Hope this helps |
|
06.08.2005, 17:27 | #4 |
Участник
|
Order_ID is integer.
|
|
06.08.2005, 17:27 | #5 |
Участник
|
It didn't help. I get the same error.
|
|
06.08.2005, 18:03 | #6 |
Участник
|
I got it working.
thank you everyone
|
|
07.08.2005, 00:00 | #7 |
Участник
|
Well, share the solution with us, will you?
Thanks |
|
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|