Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 12th, 2006, 10:28 AM
Registered User
 
Join Date: Apr 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default IBM AS400 Message Errors to show them in .NET appl

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?

Thanks.






Similar Threads
Thread Thread Starter Forum Replies Last Post
IBM AS400 Message Errors to show them in .NET appl julenis SQL Server 2000 2 July 12th, 2006 01:45 PM
Data Adaptor - IBM AS400 JesseH ADO.NET 1 February 21st, 2006 01:19 AM
Working with IBM AS400 texasraven ADO.NET 9 August 20th, 2004 12:05 PM
IBM AS400 + VB - retrieving AS400 file definitions gattsi Pro VB Databases 1 July 23rd, 2004 12:55 PM
Jsp out.flush() not working on IBM Websphere AS400 mmalik_altaf Pro JSP 0 June 28th, 2004 09:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.