Platform specific SQL
Posted: Wed 19 Jan 2022 23:23
I have been using UniDac for years, but mainly with Firebird. I now find that we are moving to SQL Server. My question is regarding the different SQL versions that Firebird and SQL Server use.
For example, Firebird uses "SELECT FIRST 100...." and SQL Server uses "SELECT TOP 100..." (and MySQL something else). I had kind of hoped that UniDac would be able to use some sort of universal SQL that deep down converts the SQL to the platform that you are using. It seems not.
Also things like the "SpecificOptions" that are set for each platform. I set some of these in code, but of course if I switch platforms, this code now errors out.
I am about to go through millions of lines of code fixing this sort of stuff, so I just want to make sure that I am not missing some feature of UniDac that can help me in this regard.
For example, Firebird uses "SELECT FIRST 100...." and SQL Server uses "SELECT TOP 100..." (and MySQL something else). I had kind of hoped that UniDac would be able to use some sort of universal SQL that deep down converts the SQL to the platform that you are using. It seems not.
Also things like the "SpecificOptions" that are set for each platform. I set some of these in code, but of course if I switch platforms, this code now errors out.
I am about to go through millions of lines of code fixing this sort of stuff, so I just want to make sure that I am not missing some feature of UniDac that can help me in this regard.