Maybe you don't pay attention to the system.data.oledb.oledBexception.ErrorS property

xiaoxiao2021-03-06  50

Each time

Catch (Exception EE)

{

Mesagebox.show (Ee.Message);

}

I read a book last night and found that there were many Exception in the FCL, and more information can be provided. I found OLEDBEXCEPTION today, Ba Shi!

Catch (System.Data.Oledb.oledbexception EE)

{

For (int J = 0; j

{

Messagebox.show ("INDEX #" J "/ N"

"Message:" EE.Errors [J] .Message "/ N"

"Native:" EE.Errors [J] TOSTRING () "/ n"

"Source:" EE.Errors [J]. Source "/ N"

"SQL:" EE.ErrorS [J] .sqlState "/ N");

}

}

转载请注明原文地址:https://www.9cbs.com/read-111307.html

New Post(0)