> A commonly used datatype to store monetary values is the MONEY data type. In SQL Server, the MONEY data type’s behavior is fixed using four digits to the right of the decimal (e.g., $12.8123). However, in PostgreSQL, the MONEY data type is fixed using two digits to the right of the decimal. > So, when the application tries to store a value of $12.8123, by example, PostgreSQL will round to $12.81. This subtle differ…
Babelfish: SQL Server-to-Postgres Translation Layer
91–100 of 118 posts
Re: Babelfish: SQL Server-to-Postgres Translation Layer
#92Re: Babelfish: SQL Server-to-Postgres Translation Layer
#93Sql Server allows you to have arbitrary statements/declarations embedded in your sql queries. It also doesn't require type information to be specified in many places.
How does this translator get around that?
For example, if I have this bit of unoptimized T-Sql:
declare @m int
select @m=[MeterID] from EnergyMeters where MeterLocation='/a/b/c';
select sum([Value]) from EnergyData where [MeterID]=@m;
How would this get translated to pgsql? (Yes, you can combine this specific statement into a single query - this is a trivial example to highlight the point)Re: Babelfish: SQL Server-to-Postgres Translation Layer
#94It would be difficult for Microsoft to canibalize their Azure Sql sales by building a similar translation layer.
Re: Babelfish: SQL Server-to-Postgres Translation Layer
#95As someone who has been fighting with a SQL Server to Postgresql conversion this sounds AMAZING. Too bad it won't be available before my conversion is complete (and if it is, that's an even sadder proposition)
Re: Babelfish: SQL Server-to-Postgres Translation Layer
#96As someone who has been fighting with a SQL Server to Postgresql conversion this sounds AMAZING. Too bad it won't be available before my conversion is complete (and if it is, that's an even sadder proposition)
How are you doing your migration right now? Rewriting code by hand?
Re: Babelfish: SQL Server-to-Postgres Translation Layer
#972) Is there converter that can convert schema and transfer all data from:
2.1) MongoDB to SQLite?
2.2) MongoDB to PostgreSQL?
Re: Babelfish: SQL Server-to-Postgres Translation Layer
#98I tried to build a T-Sql-to-pgsql compiler to enable us to migrate our code but ran into some fundamental issues. Sql Server allows you to have arbitrary statements/declarations embedded in your sql queries. It also doesn't require type information to be specified in many places. How does this translator get around that? For example, if I have this bit of unoptimized T-Sql: declare @m int select @m=[MeterID] from Ene…
Re: Babelfish: SQL Server-to-Postgres Translation Layer
#99Earlier quoted context omitted.
Their legal team might still be preparing for this one given Oracle's reputation.
SCOTUS hasn't yet ruled on Google LLC v. Oracle America Inc. One imagines that if Oracle prevails in some demonstrative manner they may very well believe their flavor of SQL is a software interface protected by copywrite. So will all the other 'software interface' owners of the world.
https://docs.cloud.oracle.com/en-us/iaas/Content/Object/Task...
Re: Babelfish: SQL Server-to-Postgres Translation Layer
#100This is great. I suspect that I have exactly the right use case for this. The two main issues with running SQL Server are (1) you have to license all the cores on a system and (2) the standard license only recognizes up to 64GB RAM. So I actually wound up buying a 3GHz single-socket system for around $10K to save $20K on the SQL license. With this, I can move a couple of the big DBs to another system that has 32 Core…