mibuso.com

Microsoft Business Solutions online community
It is currently Wed May 22, 2013 1:05 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: [Good Posting!] Setting up a linked server - looking for tips and tricks
PostPosted: Thu Apr 12, 2012 2:34 pm 
Offline

Joined: Tue Oct 04, 2011 10:26 am
Posts: 94
Country: Belgium (be)
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: D:\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


Last edited by Resender on Wed Apr 18, 2012 4:24 pm, edited 1 time in total.

Top
 Profile E-mail  
 
 Post subject: Re: Setting up a linked server - looking for tips and tricks
PostPosted: Tue Apr 17, 2012 3:35 pm 
Offline

Joined: Tue Oct 04, 2011 10:26 am
Posts: 94
Country: Belgium (be)
Ok first tip check whether the systems language settings are correct for the Identifiers you use to connect to your SQL server.


Top
 Profile E-mail  
 
 Post subject: Re: Setting up a linked server - looking for tips and tricks
PostPosted: Wed Apr 18, 2012 11:16 am 
Offline

Joined: Tue Oct 04, 2011 10:26 am
Posts: 94
Country: Belgium (be)
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.


Top
 Profile E-mail  
 
 Post subject: Re: Setting up a linked server - looking for tips and tricks
PostPosted: Wed Apr 18, 2012 12:04 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Tue Aug 14, 2001 7:01 am
Posts: 5315
Location: Prague
Country: Czech Republic (cz)
What are you actually trying to do?

_________________
David Singleton
Dynamics NAV Freelancer
Dynamics Book
Go-Live International


Top
 Profile E-mail WWW  
 
 Post subject: Re: Setting up a linked server - looking for tips and tricks
PostPosted: Wed Apr 18, 2012 12:18 pm 
Offline

Joined: Tue Oct 04, 2011 10:26 am
Posts: 94
Country: Belgium (be)
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 reports


Top
 Profile E-mail  
 
 Post subject: Re: Setting up a linked server - looking for tips and tricks
PostPosted: Wed Apr 18, 2012 4:24 pm 
Offline

Joined: Tue Oct 04, 2011 10:26 am
Posts: 94
Country: Belgium (be)
OK, got it working as fast as the sql request :D

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)


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: