Solved

Sybase sqldbcode values

Posted on 2010-08-17
5
3,070 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 250 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 250 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

758 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now