Primary Key exception

hadinatayp

Well-known member
Joined
Feb 8, 2006
Messages
95
Programming Experience
Beginner
does anybody know how to catch the primary key exception (when we enter the same value in the primary key column), instead of using the base class exception (catch ex as exception) ?
 
Catch sqlEx as SQLEXception

or

Catch oledbEx as OLEDBException

-tg
 
Back
Top