|  | 
| 
обработка сообщений об ошибке выполнения хр. процедур | |||
|---|---|---|---|
| #18+ Привет всем! Проблема такая - не могу получить сообщение об ошибке Server: Msg 515, Level 16, State 2, Procedure ptInsertRemStatus, Line 5 Cannot insert the value NULL into column 'IDRemStatus', table 'test.dbo.RemStatus'; column does not allow nulls. INSERT fails. The statement has been terminated. Т.е. идет вызов процедуры, никакой реакции на ошибку и ничего не добавляет. Когда заворачиваю в транзакцию, то естественно вылазит мое сообщение об ошибке. Использую asp.net . Вот мой обработчик ошибок, может чё-то не так? Dim cmdobj As OdbcCommand Try OpenConnection (objConn) cmdobj = New OdbcCommand(pSQLstr, objConn ) cmdobj.CommandType = CommandType.StoredProcedure RS = cmdobj.ExecuteNonQuery() Catch objException As ODBCException Dim objError As ODBCError For each objError in objException.Errors Response.Write( objError.NativeError) Response.Write( objError.Message) closecn(objConn) response.end Next End Try ... | |||
| : 
 Нравится:
     Не нравится:
     | |||
| 02.12.2003, 14:15 |  | ||
|  | 

| start [/forum/topic.php?fid=17&tid=1354260]: | 0ms | 
| get settings: | 9ms | 
| get forum list: | 12ms | 
| check forum access: | 4ms | 
| check topic access: | 4ms | 
| track hit: | 30ms | 
| get topic data: | 10ms | 
| get forum data: | 2ms | 
| get page messages: | 24ms | 
| get tp. blocked users: | 2ms | 
| others: | 11ms | 
| total: | 108ms | 

| 0 / 0 | 
