Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Can an Interbase server be linked as a linked server to an MS SQL 2008 server

Posted on 2015-01-19
Medium Priority
Last Modified: 2015-02-18
I'm an access developer with some MS SQL developer experience.  I've run into a situation where the client's query on his access database are running very slow. This query is based on 3 linked MS Sql queries (located in the MS SQL server) and one linked query located on an Interbase database.  Needless to say, since the query is being executed on the MS Access front-end, it is very slow.  Is there a way to set up the Interbase server as a linked server on the MS Sql server.  If so, what considerations do I need to take into account.
Question by:chtullu135
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
LVL 22

Expert Comment

by:Kelvin Sparks
ID: 40558453
If can install and call the ODBC driver for Interbase on the SQL Server itself, you should be OK. Once installed, it will show in the Providers dropdown if available. Possibly one of the existing providers will work - is a matter of trying them.

LVL 18

Expert Comment

ID: 40558463
Almost certainly it can be added as a linked server if you have an ODBC driver for it.

Is your SQL Server 32bit or 64bit? and do you have a matching ODBC driver for interbase?

The linked queries could be executed in a number of ways from MSSQL including OPENROWSET('linkedServerName','select * from a inner join b on a.id=b.id')
or four part notation
select * from linkedservername.database.schema.a A inner join linkedservername.database.schema.b B on A.id=B.id

Security wise, you can save login credentials in the linked server definition or provide them in OPENROWSET queries.

On our initial install of MSSQL2008R2, using a particular 32bit version of an ODBC driver for a MUMPS database, I managed to bring the whole server down at one point. An updated 64bit version of the ODBC driver for the linked server cured that problem, but I've been a little wary of linked servers ever since. Definitely test initially on a non-production setup.

Author Comment

ID: 40559919
Hello Simon,

I believe the client is running the 64 bit version of MS SQL Server 2008.  That does raise a red flag for me.  A few years ago, I was developing a VB.Net / MS Sql Server 2008 application.  For some reason (this was 6 years ago), I needed to load an Excel driver on to the server.  Imagine my surprise that Microsoft had not released a 64 bit Excel driver.  I ended up reworking some of the code.
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

LVL 18

Accepted Solution

Simon earned 2000 total points
ID: 40559989
>This query is based on 3 linked MS Sql queries (located in the MS SQL server) and one linked query located on an Interbase database.

Depending on the volatility of the data on the interbase server, you may be able to do scheduled replication of it (using SSIS) to the MSSQL server, so that more of the work can be done in a single backend rather than the a heterogenous query involving MSSQL and Interbase database or at the client PC.

Author Comment

ID: 40560428
Actually Simon, using replication is not a bad idea.  I'll bring that up with the SQL server team.
LVL 18

Expert Comment

ID: 40560448
OK. They may groan if there's a lot of tables, so it would be good if you can define the required dataset tightly - the less data the more frequently you'll be able to get snapshots and the fresher the data will be.

I run lots of bulk data imports overnight and at weekends, and can then pull just a few rows of volatile data to complete most of my requirements - your requirement for up-to-the-minute data may be different though.

Author Comment

ID: 40560631
I think the client would be happy with a daily update.

Author Closing Comment

ID: 40618125
I think that SSIS is the best solution and have proposed it.

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
What we learned in Webroot's webinar on multi-vector protection.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
Suggested Courses

609 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