Navision 2.60 ODBC small problem with a SELECT

hipogrito
Member Posts: 13
Hi!
How are you doing?
We have a small problem and I wonder if someone here could give us some idea... it's not very important anyway but... curiosity killed the cat
From SQL Server 2000 DTS we're accesing Navision Financials via ODBC (2.60). We do normal selects to one table to extract its data. No problems here.
Now we want to extract data from just one table, but filtering data by crossing with another table:
select A.*
from table1 A, table2 B
where A.someKey=B.someOtherKey and someFilters here from table B.
I want to extract all the fields from table A and none from table B, and I don't want to write: select A.field1, A.field2, A.field3, etc.... cos there are 200 fields.
Normally I'll write
select A.*
..........
but this gives me an error from the Navision ODBC....
The question is: does anybody know how to write this A.* in the select so I can get all the fields from table A and NONE from table B and the ODBC works fine?
Another solution would be doing a sub-select buuuuuuuuut, does Navision 2.60 ODBC admit subselects? I mean, I'm getting errors trying to do things like:
select *
from table1 A
where A.field1 IN (select B.field2TheSameAType from table 2
It says that it expects identifiers after "("
errrrr...
I'm just used to Oracle SQL (I'm not a Navision developer) and this ODBC behaviour is quite strange, isn't it? maybe I'm missing something here....
Thank you,
Regards
Fran
How are you doing?
We have a small problem and I wonder if someone here could give us some idea... it's not very important anyway but... curiosity killed the cat
From SQL Server 2000 DTS we're accesing Navision Financials via ODBC (2.60). We do normal selects to one table to extract its data. No problems here.
Now we want to extract data from just one table, but filtering data by crossing with another table:
select A.*
from table1 A, table2 B
where A.someKey=B.someOtherKey and someFilters here from table B.
I want to extract all the fields from table A and none from table B, and I don't want to write: select A.field1, A.field2, A.field3, etc.... cos there are 200 fields.
Normally I'll write
select A.*
..........
but this gives me an error from the Navision ODBC....
The question is: does anybody know how to write this A.* in the select so I can get all the fields from table A and NONE from table B and the ODBC works fine?
Another solution would be doing a sub-select buuuuuuuuut, does Navision 2.60 ODBC admit subselects? I mean, I'm getting errors trying to do things like:
select *
from table1 A
where A.field1 IN (select B.field2TheSameAType from table 2

It says that it expects identifiers after "("
errrrr...
I'm just used to Oracle SQL (I'm not a Navision developer) and this ODBC behaviour is quite strange, isn't it? maybe I'm missing something here....
Thank you,
Regards
Fran
0
Comments
-
I know that the Navision ODBC does support the complete SQL-language. Probably this is one of the things that the Navision ODBC does not support.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions