linked Server SQL 2005 Navision 4.0

Navision Articles

Get our Free Newletter

Don't you have the time to be online here at DUG every day? So how do you follow what is going on in the Dynamics industry and community?
If you subscribe to the DUG Newsletter then you can relax! We will make sure that you don't miss the big news!

Check out our
Newsletter Subscription Center
page a complete list of our different newsletters.

Not Answered This post has 0 verified solutions | 9 Replies | 3 Followers

Not Ranked
5 Posts
45 Points
Joined: Dec 16, 2008
Last Online:
Dec 17, 2008 22:32
ledostoe posted on Dec 16, 2008 12:40
How helpful was this post/question? Please rate here:

You are my last hope. I try (since days) to establish a linked server on a sql server 2005 to navisio 4.0 native.

I have installed the odbc interface and a query per excel works fine.

This are my properties...

 

This is the error message, when I try to expant the linked server to see the tables.

Is there a tutorial avaiable anywhere in the net?

 

TITLE: Microsoft SQL Server Management Studio
------------------------------

Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------

The OLE DB provider "SQL Server" for linked server "(null)" reported an error. One or more arguments were reported invalid by the provider.
Cannot obtain the schema rowset "DBSCHEMA_CATALOGS" for OLE DB provider "SQL Server" for linked server "(null)". The provider supports the interface, but returns a failure code when it is used. (Microsoft SQL Server, Error: 7399)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.3068&EvtSrc=MSSQLServer&EvtID=7399&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------

 

Thanks a lot!!

All Replies

Top 10 Contributor
Male
5,053 Posts
94,835 Points
Joined: Oct 1, 1995
Last Online:
Mar 20, 2010 7:18
Location: Copenhagen, Denmark
DynamicsNAVMVP
Moderator
SystemAdministrator
Erik P. Ernst replied on Dec 16, 2008 13:16
How helpful was this comment/solution? Please rate here:

Hi and welcome to the User Group,

I would love to know exactly what it is that you're trying to accomplish with this. Maybe there's a better way to do it.

Best regards,
Erik P. Ernst

DUG’s Admin's Blog

Don't forget to "Verify Solution" the post(s) that solved your problem. This credits the experts who helped, earns you points and marks your thread as Resolved so we all know you have been helped.

Not Ranked
5 Posts
45 Points
Joined: Dec 16, 2008
Last Online:
Dec 17, 2008 22:32
ledostoe replied on Dec 16, 2008 17:08
How helpful was this comment/solution? Please rate here:

Dear Erik,

well I want to merge some navision transactions  / bookings (multiple clients) with some data which is stored in an access database into to let us named it dataware house. First I try to use SSIS but it didn't work either... So I tried the linked server alternative for the navision data. I would implement a stored procedure which select (out off navision) and copy the required data into the datawarehouse (sql server 2005) let's say every hour....

Regards, Lennard

Not Ranked
5 Posts
45 Points
Joined: Dec 16, 2008
Last Online:
Dec 17, 2008 22:32
ledostoe replied on Dec 17, 2008 16:22
How helpful was this comment/solution? Please rate here:

Any idea?

Top 10 Contributor
Male
5,053 Posts
94,835 Points
Joined: Oct 1, 1995
Last Online:
Mar 20, 2010 7:18
Location: Copenhagen, Denmark
DynamicsNAVMVP
Moderator
SystemAdministrator
Erik P. Ernst replied on Dec 17, 2008 18:24
How helpful was this comment/solution? Please rate here:

So let me understand this:

  • You have a "dataware house" based on SQL Server 2005?
  • You have a native Dynamics NAV 4.0 database?
  • You want the SQL datawarehouse to automatically read data from the native NAV database?

Looking at your first post, then it looks like you're using the standard Microsoft ODBC driver. When you want to read data from a native NAV database, then you need NODBC, which is Navision's own ODBC driver.

Best regards,
Erik P. Ernst

DUG’s Admin's Blog

Don't forget to "Verify Solution" the post(s) that solved your problem. This credits the experts who helped, earns you points and marks your thread as Resolved so we all know you have been helped.

Top 10 Contributor
Male
5,053 Posts
94,835 Points
Joined: Oct 1, 1995
Last Online:
Mar 20, 2010 7:18
Location: Copenhagen, Denmark
DynamicsNAVMVP
Moderator
SystemAdministrator
Erik P. Ernst replied on Dec 17, 2008 18:29
How helpful was this comment/solution? Please rate here:

Just one more thing. I can give a tip I always use. When you create a new data source, then I can only recommend that you test it first. Personally I always use Microsoft Excel, as it is very easy to see the results.

Best regards,
Erik P. Ernst

DUG’s Admin's Blog

Don't forget to "Verify Solution" the post(s) that solved your problem. This credits the experts who helped, earns you points and marks your thread as Resolved so we all know you have been helped.

Not Ranked
5 Posts
45 Points
Joined: Dec 16, 2008
Last Online:
Dec 17, 2008 22:32
ledostoe replied on Dec 17, 2008 18:48
How helpful was this comment/solution? Please rate here:

Totally agree there is no better tool to check a new datasource quick and dirty. I've done that already and it works (I've wrote that in my first "post").

I have installed the Navision ODBC Driver and created a DSN. I've used this DSN to access Navision via Excel. Works Fine.

nav_BeSch_KG is the name of the DSN. That was what I've used at my first try (see my first post)...

I don't know...

 

 

 

Top 200 Contributor
Male
97 Posts
1,085 Points
Joined: Feb 19, 2008
Last Online:
Mar 19, 2010 21:45
Location: Toronto, ON
Mark Legosz replied on Dec 17, 2008 22:00
How helpful was this comment/solution? Please rate here:

I would try to setup the connection directly in SQL Linked Servers, rather than using the ODBC driver to refer to the DSN which then connects via Navision driver. I've never done this, but it may work. Does the Navision driver appear on the 'provider' list in SQL?

Secondly (and I have no idea if this would work or not) but try setting up the DSN on both your client and the server (unless you're on the server directly already).

Not Ranked
5 Posts
45 Points
Joined: Dec 16, 2008
Last Online:
Dec 17, 2008 22:32
ledostoe replied on Dec 17, 2008 22:29
How helpful was this comment/solution? Please rate here:

Hi Legosz,

Your first approach is what first came into my mind as well but as you mentioned the Navsiosn driver doesn't appear in the provider list. Do you have any idea hoe to add?

Secondly I've done that before and it didn't help but I am interested in your intention why this could help.

Thank you all guys for your help!

Top 200 Contributor
Male
97 Posts
1,085 Points
Joined: Feb 19, 2008
Last Online:
Mar 19, 2010 21:45
Location: Toronto, ON
Mark Legosz replied on Dec 17, 2008 22:45
How helpful was this comment/solution? Please rate here:

I have no idea how to add it to appear - perhaps do the install of the navision odbc driver on the SQL Server (which may or may not be a good idea from a DBA perspective)? I've never had to do this with any kind of driver before. Soembody else here I'm sure would have some thoughts on this.

Secondly, well, with SQL 2000 and DTS, I know when editing a package, many of the references were local to the editing client. For example, if a flat file was referenced to c:\test.txt, then when designing the package from another host, simple tests would look locally for the file. My thought was perhaps, even in SQL 2005, there was a minor quirk that was looking locally for the DSN. Being you've tried it, I guess it doesn't help!

Are you able to extract the data into an MS Access database using your current DSN? If you can, you may be able to setup linked tables, and you could then in theory use an ODBC driver from SQL to look into that Access DB (which would be directly linked to your NAV tables). Its messy, but it might just work.

 

 

 

 

Page 1 of 1 (10 items) | Get this RSS feed | Bookmark and Share