sql - odbc

stampe
Member Posts: 48
My Navision is 2.50 and running on a ms-sql server the problem ocur when i am trying to acsess the database with the sql sever odbc, I can se all the tables and chose fields from the tables but when I try to fininsh the ODBC wizard, this error ocur " Incorrect Syntax near 'Ltd'." this is when i am trying to acsess a table named "CRONUS International Ltd.$Customer" i think its either the "$" or the "." that causes the problem but what settings do i have to change to avoid this problem ?
If I try to acsess the database with ADO (OLE-DB) i get the same error with this syntax
"SELECT * From CRONUS International Ltd.$Customer"
while this syntax works
"SELECT * From [CRONUS International Ltd.$Customer]"
Pls. help
Thanks
Peter Nielsen
If I try to acsess the database with ADO (OLE-DB) i get the same error with this syntax
"SELECT * From CRONUS International Ltd.$Customer"
while this syntax works
"SELECT * From [CRONUS International Ltd.$Customer]"
Pls. help
Thanks
Peter Nielsen
0
Comments
-
You are answering your own question. Because of the company name, you need to surround the table name with square brackets.
Which ODBC wizard you are talking about? Are you trying to set up a System DSN? Which driver? What parameters have you used/set?
John0 -
Hello John
I am talking about the wizard that is in ms excel where you chose an odbc connection,i dont have an english version of excel but thi´nk its the Data menu and then "Get external data" or something like that.
I have made an system dsn where i use the sql server driver.
It is correct that in ms query i can write the sql-statement and then get the data, but i was hoping that the wizard could do the work
Peter0
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