Navision database, C/ODBC and SQL Server 2000

bjarvis
Member Posts: 5
Could anyone help me with referencing Navision proprietary database tables from SQL Server 2000 using C/ODBC. Apologies for the essay !!
I have a 3.10 Navision installation with C/ODBC installed. The configured data source successfully retrieves information from the Navision database file for the chosen company via Access and Excel.
I have created a linked server within SQL Server 2000 using the MS OLEDB Provider for ODBC Drivers and used the System DSN previously setup (that was shown to work successfully above). The linked server successfully shows me the list of Navision tables.
My problem is then how to reference those tables through Transact SQL. Usually through linked servers you require 4 identifiers of
linked server.catalog.schema.object
however when trying (using linked server 'Test')
TEST...Company
missing out a definition for the catalog and schema I receive an error message:
Server: Msg 7317, Level 16, State 1, Line 1
OLE DB provider 'MSDASQL' returned an invalid schema definition.
and missing out the schema portion altogether
TEST..Company
not surprisingly returns
Server: Msg 208, Level 16, State 1, Line 1
Invalid object name 'TEST..Company'.
as its now looking for a database called TEST.
Any help gratefully received.
I have a 3.10 Navision installation with C/ODBC installed. The configured data source successfully retrieves information from the Navision database file for the chosen company via Access and Excel.
I have created a linked server within SQL Server 2000 using the MS OLEDB Provider for ODBC Drivers and used the System DSN previously setup (that was shown to work successfully above). The linked server successfully shows me the list of Navision tables.
My problem is then how to reference those tables through Transact SQL. Usually through linked servers you require 4 identifiers of
linked server.catalog.schema.object
however when trying (using linked server 'Test')
TEST...Company
missing out a definition for the catalog and schema I receive an error message:
Server: Msg 7317, Level 16, State 1, Line 1
OLE DB provider 'MSDASQL' returned an invalid schema definition.
and missing out the schema portion altogether
TEST..Company
not surprisingly returns
Server: Msg 208, Level 16, State 1, Line 1
Invalid object name 'TEST..Company'.
as its now looking for a database called TEST.
Any help gratefully received.
0
Comments
-
Hi;
I'm just wondering if you can help me with the linked server connection? What did you put into:
Product Name:
Datasource:
Provider String:
Location:
Catalog:
to create your linked server? I can then help you with querying the connection.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