Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IBM AS400 Message Errors to show them in .NET application

Status
Not open for further replies.

julen

Programmer
Mar 26, 2006
27
0
0
ES

Hi friends,

I am doing a .NET Windows application.

I am working against a DB2 AS/400 database.

I have some tables where i have put some key restrictions.
I mean, for example i have 2 fiels in a table: name and address. The name i want to be unique. This restriction has a name, for example: "Name restriction".

The problem is that when I insert a row with a name, for example "Peter" and then I try to insert another row with the same name, "Peter", the IBM database says that exists a row with the same information. This is what i want and it is okey, But the problem is that i want to capture the restriction name: "Name restriction", to show it in the .NET application.

How can I do it? Any ideas?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top