Solved

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

Posted on 2015-01-19
8
193 Views
Last Modified: 2015-02-18
Hello,
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.
0
Comment
Question by:chtullu135
  • 4
  • 3
8 Comments
 
LVL 22

Expert Comment

by:Kelvin Sparks
Comment Utility
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.


Kelvin
0
 
LVL 18

Expert Comment

by:SimonAdept
Comment Utility
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.
0
 

Author Comment

by:chtullu135
Comment Utility
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.
0
 
LVL 18

Accepted Solution

by:
SimonAdept earned 500 total points
Comment Utility
>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.
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:chtullu135
Comment Utility
Actually Simon, using replication is not a bad idea.  I'll bring that up with the SQL server team.
0
 
LVL 18

Expert Comment

by:SimonAdept
Comment Utility
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.
0
 

Author Comment

by:chtullu135
Comment Utility
I think the client would be happy with a daily update.
0
 

Author Closing Comment

by:chtullu135
Comment Utility
I think that SSIS is the best solution and have proposed it.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

771 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

9 Experts available now in Live!

Get 1:1 Help Now