Setting up a linked server - looking for tips and tricks

Resender
Member Posts: 119
OK, I got to setup a linked server in the following environment
*Windows 7
*MS SQL Server 2008 R2
*MS Virtual PC
We got a Virtual PC running Windows XP, and on that XP (called VIRTUALXP-88...) we got Navision Attain 3.6 installed.
The fdb file containing our database is not located on the virtual machines virtual hard drive (no pun intended) but on a secondary partition of our physical machine.
We run Navision either as a virtual application or in the virtual machine itself depending on what we are working on.
On the physical machine running Windows 7 we now want to create a linked server from the SQL Server to the Navision Attain one.
I've used the following:
Linked Server:Nav
Provider: Microsoft OLE DB Provider for ODBC Drivers
Data Source: VIRTUALXP-88...
Provider String: UID & PWD
Location:
\name_of_our_database.fdb
Catalog:
When I try to create it it runs into error,
Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "NAV".
OLE DB provider "MSDASQL" for linked server "NAV" returned message "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified". (Microsoft SQL Server, Error: 7303)
There people I could ask it inhouse but their on leave for another week or 2 and I need to resolve this.
Thank you for any input
*Windows 7
*MS SQL Server 2008 R2
*MS Virtual PC
We got a Virtual PC running Windows XP, and on that XP (called VIRTUALXP-88...) we got Navision Attain 3.6 installed.
The fdb file containing our database is not located on the virtual machines virtual hard drive (no pun intended) but on a secondary partition of our physical machine.
We run Navision either as a virtual application or in the virtual machine itself depending on what we are working on.
On the physical machine running Windows 7 we now want to create a linked server from the SQL Server to the Navision Attain one.
I've used the following:
Linked Server:Nav
Provider: Microsoft OLE DB Provider for ODBC Drivers
Data Source: VIRTUALXP-88...
Provider String: UID & PWD
Location:

Catalog:
When I try to create it it runs into error,
Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "NAV".
OLE DB provider "MSDASQL" for linked server "NAV" returned message "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified". (Microsoft SQL Server, Error: 7303)
There people I could ask it inhouse but their on leave for another week or 2 and I need to resolve this.
Thank you for any input
0
Comments
-
Ok first tip check whether the systems language settings are correct for the Identifiers you use to connect to your SQL server.0
-
OK, when I test the ODBC via Excel or any other program (for instance a 'hello world' type of quick program) it runs fast.
If I run the same query through the linked server it takes hours with no result.0 -
What are you actually trying to do?David Singleton0
-
Setting up a linked server to use reporting services on the navision data, I know you could just use ODBC on the reports but I mean to understand by using a linked server you have more options on your reports0
-
OK, got it working as fast as the sql request
To do this I had in the Provider opstions for MSDASQL, which apparently Microsoft OLE DB Provider for ODBC Drivers, I had to check Nestled Queries,Level Zero Only and Support 'Like' operator. From what I found their is an advisement to turn off Allow Inprocess but I haven't noticed much difference.(Off course then again haven't done much with it)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