Need help with SQL syntax - Navision Financials

beckwiga
Member Posts: 2
I am working for a client who uses the Navision system. I am connected to the system via the Navision ODBC driver and am using a simple ODBC tool (ODBCTest) to run queries.
I need to query the data to return transactions that have a Date within a certain range. This is not hard normally, but I am getting errors when performing the simplest of SQL queries on this system. For example, so, I set up a SELECT Date FROM blank WHERE Date ... and have tried to use WHERE Date >= and have also tried WHERE Date IS GREATER THAN and have also tried WHERE Date BETWEEN and put in 2 dates, but none of the operators seem to be acceptable syntax to Navision. I also can't seem to use other functions like Left, Right, Mid, LTrim, Date_Format, etc...
Can anyone help me with SQL syntax that is accepted by this system? What functions are supported if any and what operators are acceptable? Does anyone have any documentation on using SQL with this system?
Thanks in advance... any suggestions appreciated. Email to beckwiga@hotmail.com
greg
I need to query the data to return transactions that have a Date within a certain range. This is not hard normally, but I am getting errors when performing the simplest of SQL queries on this system. For example, so, I set up a SELECT Date FROM blank WHERE Date ... and have tried to use WHERE Date >= and have also tried WHERE Date IS GREATER THAN and have also tried WHERE Date BETWEEN and put in 2 dates, but none of the operators seem to be acceptable syntax to Navision. I also can't seem to use other functions like Left, Right, Mid, LTrim, Date_Format, etc...
Can anyone help me with SQL syntax that is accepted by this system? What functions are supported if any and what operators are acceptable? Does anyone have any documentation on using SQL with this system?
Thanks in advance... any suggestions appreciated. Email to beckwiga@hotmail.com
greg
0
Comments
-
FROM NOBDC ManualDATE Enter a date in this format: {d ‘yyyy-mm-dd’} where y=year (1752-
9999), m=month (01-12) and d=day (01-31).
Note that if you have closing date support, you must use the
timestamp format described on page 23.SELECT * FROM Currency WHERE {pred SetFlowFilter, 'Currency', 'Customer_Filter', '10000..40000' } OR Last_Date_Modified > 01.01.04
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