[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Sybase sqldbcode values

Posted on 2010-08-17
5
Medium Priority
?
3,508 Views
Last Modified: 2013-12-26
Can anyone guide me to all the sqldbcode values returned from the Sybase server? I need to code for those values in pfc - dberror event - so that I can display some meaningful errors to the users.
0
Comment
Question by:4Learning
  • 2
  • 2
5 Comments
 
LVL 18

Expert Comment

by:diasroshan
ID: 33462108
0
 

Author Comment

by:4Learning
ID: 33512299
Thankyou diasroshan, but my original question was asking about sqldbcodes and NOT sqlcodes. So the link really does not help.
I need to quote in my script the action to be taken on  certain sqldbcodes values - this happens when sqlcode is negative.
And since sqldbcode is vendor specific, the error codes from one vendor will be different from another.
Hope someone is able to help me out with this.
 
Thanks,
 




 
0
 
LVL 18

Accepted Solution

by:
diasroshan earned 1000 total points
ID: 33518946
Hi,

As far as i understand, the above 2 links shud serve your purpose, since ur looking specific for Sybase Database.
SQLCodes in the Sybase link are same as the sqldbcodes of PB. But vendor specific. Oracle will have it different.

ill put the screenshots from both the links to illustrate my point.

For eg.
Powebuilder sqldbcode = -195
As per Sybase -195 is ---> "Column '%1' in table '%2' cannot be NULL"

If u are still facing problems, give me an example of error u want to trap and ill explain with these 2 links.

Cheers,
Rosh
DBError.JPG
SybaseErrorCode.JPG
0
 
LVL 14

Assisted Solution

by:sandeep_patel
sandeep_patel earned 1000 total points
ID: 33611948
0
 

Author Comment

by:4Learning
ID: 33628473
Thanks diasroshan for the info. I didnt know that in case of Sybase, the sqlcode and sqldbcode values are the same.

Thanks also to sandeep_patel for the link.

Regards,
4Learning
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question