473,472 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

significance of SQL state?

Someone explain the significance of SQL state?

Oct 13 '06 #1
5 2195
compguy wrote:
Someone explain the significance of SQL state?
From a standard's perspective, it's supposed to be _the_ mechanism to
communicate error states from the DBMS to the application.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Oct 13 '06 #2

Knut Stolze wrote:
compguy wrote:
Someone explain the significance of SQL state?

From a standard's perspective, it's supposed to be _the_ mechanism to
communicate error states from the DBMS to the application.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Am I right in thinking that different suppliers use consistently
different SQLCODEs for the same errors and that intellectual property
rights laws probably ensured that they had to do so. However, I
believe that they all use +100 for no data. SQLSTATE provides more
detail and also provides some logical grouping of error categories.

Robert

Oct 13 '06 #3
Robert wrote:
Am I right in thinking that different suppliers use consistently
different SQLCODEs for the same errors and that intellectual property
rights laws probably ensured that they had to do so. However, I
believe that they all use +100 for no data. SQLSTATE provides more
detail and also provides some logical grouping of error categories.

Robert
There are no intellectual property issues. The SQLSTATE was
specifically added to the SQLCODE to allow everyone to use a standard
set of error messages. However, like many other standards, not all
vendors have adhered to them.

It probably can be used with some sucess to port applications accross
various IBM relational products.

Oct 13 '06 #4
Mark A wrote:
Robert wrote:
>Am I right in thinking that different suppliers use consistently
different SQLCODEs for the same errors and that intellectual property
rights laws probably ensured that they had to do so. However, I
believe that they all use +100 for no data. SQLSTATE provides more
detail and also provides some logical grouping of error categories.

Robert

There are no intellectual property issues. The SQLSTATE was
specifically added to the SQLCODE to allow everyone to use a standard
set of error messages. However, like many other standards, not all
vendors have adhered to them.

It probably can be used with some sucess to port applications accross
various IBM relational products.
Across the DB2 family both SQLCODE and SQLSTATE are quite portable.
(Quite as in there are exception, but we maintain a central and shared
catalog of our error codes).

Teh story on SQLCODEs is that in the early days of System R, some
upstart company called Oracle asked for System R's SQLCODEs.
IBM, at that time not particularly standards oriented and quite possibly
a tad ;-) arrogant declined. Now we got the mess...

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

IOD Conference
http://www.ibm.com/software/data/ond...ness/conf2006/
Oct 13 '06 #5
>Someone explain the significance of SQL state? <<

This is a part of Standard SQL. SQLSTATE is an alphanumeric string
that returns error codes. The first two characters are a category and
the rest of the string is a detailed breakdown. There is some room for
proprietary additions to the scheme.

It replaced SQLCODE, which was a numeric code for the same purpose, but
not as detailed.

Oct 14 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Anonymous | last post by:
In PHP Whats the difference between $yourname = @$_POST; AND $yourname = $_POST; In particular, what is the significance of '@' as a prefix to the variable? Thanks in advance
4
by: Prem Mallappa | last post by:
Hello can anybody please tell me what is the significance of 0; 1; or something like 100;
1
by: Angrez Singh | last post by:
Hi, If you just want to implement your own HttpHandler using the IHttpHandler interface you have to implement a function and a property of the interface. The function ProcessRequest() is used to...
26
by: joe | last post by:
My experiments show that the random number generator in Microsoft's VC++6 compiler is a statistical RNG with a significance level 1.0%. Statistical testing at SL >1.0% (for example 1.001%) passes...
6
by: Rain | last post by:
Hi, I noticed the other day when I was trying to optimise the traffic on a particular web page that it had significant viewstate even though I had turned it off for most of the controls. So in...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.