Hi
Our corporate databases are Oracle but over the next few years will move to sql server. We are beginning our BI development using linked servers some reporting will require real time data so to start we have used the openquery syntax.
The plan was to create sql server views of the oracle tables so that all newly written code was totally sql server and no re-write of code would be required as and when the corporate databases transitioned from oracle to sql server.
This works but performance is very slow. Returning all records from a table is acceptable but as soon as a where clause is introduced performance grinds to a halt though results are usuaally returned.
I have tried creating the views with schema binding - dorsn't work and indexed views - also doesn't work.
Can anyone suggest what it is I'm doing wrong or what i'm missing asa it makes total business sense to ensure that all new coded development is done in a way where we only have to change our data source when the corporate databases change vendor. I'm quite new to sql server so appreciate any advice.
Kind regards Lesley