dbTalk Databases Forums  

Re: SQL Syntax differences between SQL Server & Ingres

comp.databases.ingres comp.databases.ingres


Discuss Re: SQL Syntax differences between SQL Server & Ingres in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chris
 
Posts: n/a

Default Re: SQL Syntax differences between SQL Server & Ingres - 11-02-2011 , 11:40 AM






On Nov 2, 9:47*am, David Brooks <dbro... (AT) visionsystemssoftware (DOT) com>
wrote:
Quote:
I know years ago when I had dealings with a project that used
Ingres/Star and the SQL Server Gateway, we had differences in syntax
between writing SQL for either side.

Have the two got closer to in recent years, as in following the SQL
standard and/or has the differences (SQL-A maps to SQL-B) been
documented somewhere?
Both Ingres/Star and the Microsoft SQL Server Gateway understand
OpenSQL (see the OpenSQL guide, either the PDF or online version at
http://docs.actian.com/ingres/10.0/sql-reference-guide/ ). The problem
with using "the SQL standard" is that sometimes that isn't enough,
e.g. consider the syntax used for temporary tables in mssql (they are
prefixed with a "#").

If you use OpenSQL, the same application should work against Ingres
and Microsoft SQL Server. However it is possible to use Microsoft SQL
Server specific SQL against the gateway, which of course won't work
with Ingres and vice-versa. I.e. applications are more portable if
they are written with portability in mind. It is possible to modify an
existing application to use OpenSQL but it is almost easier to do it
at the start of new project.

The Enterprise Access (aka gateway) Developing Portable Applications
(DPA) Guide (http://docs.actian.com/enterprise-access/2.7) and the
Ingres OpenSQL manual are good starting resources for this. I
recommend pulling the whole PDF set down as there is a "Bookshelf"
that allows searching across all the guides.

Chris

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.