-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Shk1231
Message 2 in Discussion
Just u wil recive a error from the backe end from Stored proceure
or insert statemnet
with error message
write the transaction in Try Catch
Block
in Catch block
catch the error message
If InStr(es.Message, "here the exception thrown by the DB")
> 0 Then
Do som
thing
End If
then show the error message.
Keep Smiling,
Regards.
Sayad Hashim Ali Kazi
SQL Star International Ltd.
SQL
House,
#13,Infocity,Madhapur,
Hyderabad
500033.
+91-40-23101625(Off)
+91-40-55365573(Res)
e-mail:
[EMAIL PROTECTED]
website: www.sqlstarintl.com
-----Original Message-----
From: vipin_gkv
[mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2003 6:42
PM
To: BDOTNET
Subject: Very..Very Urgent..in
Asp.Net
New Message on BDOTNET
Very..Very Urgent..in Asp.Net
Reply
Reply to Sender Recommend
Message 1 in
Discussion
From: vipin_gkv
Hello Folks,
How can I Catch an Exception for an Error Thrown by
Inserting
Duplicate Data against a Unique Or Primary Key. in Sql
Server
Asp.Net and C#.
By making a Stored Procedure Or If There is Any Other
Method?
Please give me any good
example to Follow not just Hint.
Thanks and Regards
Sincerely
Vipin
Gaur
View other groups in this
category.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]