Linking to a Pervasive DB

We have to DBs that I would like to link togther. One is a Timberline DB in Pervasive, and the other is a Goldmine DB in MS SQL. Could any one point me to or post information on how to link the two together. I have looked around a bit, and can not find anything solid.

Is it possible to do this in a stored procedure?


Who is Participating?
Here's how to do it but I think you're going to have some performance issues with the Pervasive drivers.  Does it have to be dynamic?  You may be better off foregoing linked tables and just using DTS to import data every day.

EXEC sp_addlinkedserver
    @server = 'MyServer',
    @provider = 'MSDASQL',
    @srvproduct='Pervasive ODBC Client Interface',
    @datasrc = 'MyDSN'

select * from [MyServer].[MyPervasiveDatabase]..[MyPervasiveTabl­e]

Create a Linked Server in SQL Server pointing to the Pervasive database.

Depending on what you mean by "link" you will then be able to query both or pull pertenant data from each into a seperate SQL database

See "Linked Server" in SQL Books on line (or search EE for lots of help with it)
MrSmithAuthor Commented:
For the time being, about a year or so, I know there will not be very much intensive flow between the two servers. Just want to use it in one report right now. Dynamic would be the best. I will dig into the Linked Server idea first.


Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

MrSmithAuthor Commented:
After looking at the Goldmine database structure and what not, it looks like a stored procedure is going to have to be the solution. Goldmine stores custom field values in a single table, along with other custom field values and gives each value a link to the related custom field.

I will have to create a stored procedure to not only pull the data from Pervasive, but then put it into this custome field value table.

A spin off question would be that can you have a stored procedure run at certain times? Or does it have to be a DTS?
Stored procedures can be run at pre-set times as jobs.  Or they can be called from triggers.
MrSmithAuthor Commented:
Thanks for all the help!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.