IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Difference between DB2 SQL and ANSI SQL


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
boo_sri

New User


Joined: 26 Jul 2005
Posts: 36
Location: charlotte

PostPosted: Wed Jan 23, 2008 4:33 am
Reply with quote

Hi,
one of our application is using ANSI SQL and they want to convert it into DB2 SQL standard. So please answer the following asap:

1. what is the diff b/w ANSI SQL and DB2 compatible SQL?
2. How to convert it?
3. What will be the benefits?


Database Details:
Version : Db2 v8.1 for z/OS (compatibilty mode)
Processor: Z900 series
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Wed Jan 23, 2008 5:17 am
Reply with quote

Try running it without converting. Most SQL is just SQL. They should be compatible as long as you didn't do anything funky.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jan 23, 2008 8:33 am
Reply with quote

Hello,

Which database system is currently running?
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Wed Jan 23, 2008 9:09 am
Reply with quote

ANSI isn't a database vendor, it is the American National Standards Institute. DB2 SQL most likely conforms to one of the actual ANSI SQL standards but also extends it.

en.wikipedia.org/wiki/SQL#Standardization
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jan 23, 2008 8:26 pm
Reply with quote

Hi Steve,

Yes, it is a standard rather than a product, but i was just wondering on which database engine the "ANSI SQL" is currently running. . .
Back to top
View user's profile Send private message
boo_sri

New User


Joined: 26 Jul 2005
Posts: 36
Location: charlotte

PostPosted: Thu Jan 24, 2008 2:50 am
Reply with quote

Hi Dick,
The database engine is DB2 and is running on a mainframe server (z900 series).

Version: DB2 v8.1 for z/os (compatibility mode)
H/w : Z900 series
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jan 24, 2008 8:56 am
Reply with quote

Hello Boopathy,

If the application is already successfully running on DB2 (i misread/misunderstood that from the initial post, my apologies icon_redface.gif ), is there a need for a conversion?
Back to top
View user's profile Send private message
boo_sri

New User


Joined: 26 Jul 2005
Posts: 36
Location: charlotte

PostPosted: Thu Jan 24, 2008 8:29 pm
Reply with quote

Basically i need the exact difference beween the ANSI SQL and DB2 SQL. I heard that DB2 compatible SQL will give more flexibility and performance compared to the ANSI Sql.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Thu Jan 24, 2008 8:32 pm
Reply with quote

You'll need to compare the DB2 v8.1 SQL manual to the ANSI spec that it is implemented against.
Back to top
View user's profile Send private message
boo_sri

New User


Joined: 26 Jul 2005
Posts: 36
Location: charlotte

PostPosted: Fri Jan 25, 2008 3:07 am
Reply with quote

Steve -

can any one forward me those docs to my id: persnal e-addr removed
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Fri Jan 25, 2008 3:12 am
Reply with quote

DB2
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/DSNSQJ10/CCONTENTS?

The link I provided you to Wikipedia states the ANSI Standard is not freely available, however a late draft of SQL 2003 is linked from there.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts What is the difference between Taskty... Compuware & Other Tools 2
No new posts Difference between VALIDPROC and CHEC... DB2 3
No new posts Difference between CEE3250C and CEE3204S COBOL Programming 2
Search our Forums:

Back to Top