Transforming Exception Errors into Friendly Messages

From: hifni (hifni_at_vampire.net)
Date: 02/27/04

  • Next message: ozbear: "Re: Transforming Exception Errors into Friendly Messages"
    Date: 26 Feb 2004 18:42:10 -0800
    
    

    Hi,
    I'm using a MS SQL Server 2000 as my database, while I'm
    entering, if I had entered a value, and it's turned up into a
    duplicate value, the Server sends an error
    as "EOLEException/EDatabaseError PK_Primary Key duplicate value
    found". How could I write a friendly message in the
    TTable.OnPostError Event, that the user have entered a
    duplicate value. How could do for other Exception Errors produced by the database.

    Thanx,

    Hifni


  • Next message: ozbear: "Re: Transforming Exception Errors into Friendly Messages"

    Relevant Pages

    • Re: Out of Memory When using COM Objects
      ... we use SQL Server 2000 database. ... The strange thing is when I try to duplicate the problem, ...
      (microsoft.public.inetserver.iis)
    • Re: SQL Server Import CSV data and skip duplicate rows
      ... I have a SQL Server 2005 Database, and want to import data into the ... Database from a series of .csv files that get generated on a nightly ... It is likely that the csv files will contain duplicate rows, ...
      (microsoft.public.sqlserver.programming)
    • Re: Generating PL/SQL Script from table
      ... Within SQL Server, once I create a database, related tables, triggers, ... Manager) to duplicate the database and all related tables, ...
      (comp.databases.oracle.server)
    • Re: Transforming Exception Errors into Friendly Messages
      ... >I'm using a MS SQL Server 2000 as my database, ... >duplicate value, ... How could do for other Exception Errors produced by the database. ...
      (borland.public.delphi.database.ado)
    • Re: I miss TBatchMove
      ... For example, in MS SQL Server: ... will copy duplicate table authors from pubs database in current database. ...
      (borland.public.delphi.database.ado)