Linking to a Pervasive DB

Posted on 2005-05-16
Last Modified: 2008-01-09
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?


Question by:MrSmith
    LVL 11

    Expert Comment

    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)
    LVL 13

    Accepted Solution

    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]


    Author Comment

    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.



    Author Comment

    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?
    LVL 13

    Expert Comment

    Stored procedures can be run at pre-set times as jobs.  Or they can be called from triggers.

    Author Comment

    Thanks for all the help!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    I recently came across an interesting Question In EE ( and was puzzled about how to achieve that using SSIS out of the box tasks, which was i…
    Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
    Via a live example, show how to setup several different housekeeping processes for a SQL Server.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now