sql exception

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shubha
    New Member
    • Sep 2006
    • 1

    sql exception

    Hello,

    In my database i have declared a field unique.When i will enter same value twice to this unique field what type of exception i will get in ado.net.Any body who knew this plz help me.Thanks.
  • angi the dark angel
    New Member
    • Sep 2006
    • 11

    #2
    u try it with an exception handdling and get the exception

    try
    'ur code if inserting data to the databade using ADO.net
    Catch ex As Exception
    MsgBox(ex.Messa ge.ToString(), "Message", MsgBoxStyle.Inf ormation)
    End Try

    message will popup with the error

    Comment

    Working...