MavrickStl
Programmer
How can I trap this error (and show it in simple words to the user) returned by oracle while calling a trigger via an asp page:
Microsoft OLE DB Provider for Oracle error '80040e2f'
ORA-00001: unique constraint (BRAG.SYS_C001009) violated ORA-06512: at "Nix.NEW_USER_LOGIN", line 25 ORA-04088: error during execution of trigger 'Nix.NEW_USER_LOGIN' ORA-06512: at "Nix.EMP_ADD", line 14 ORA-06512: at line 1
Here is my ASP code:
With objCommand
.CommandText = "{Call emp_add(?,?,?,?,?,?)}"
.CommandType = adCmdText
.Parameters(0).Value = varNixUserId
.Parameters(1).Value = varFirstName
.Parameters(2).Value = varLastName
.Parameters(3).Value = varEmail
.Parameters(4).Value = varLeadId
.Parameters(5).Value = varPassword
.Execute()
------------------------
Thanks,
Mav
Microsoft OLE DB Provider for Oracle error '80040e2f'
ORA-00001: unique constraint (BRAG.SYS_C001009) violated ORA-06512: at "Nix.NEW_USER_LOGIN", line 25 ORA-04088: error during execution of trigger 'Nix.NEW_USER_LOGIN' ORA-06512: at "Nix.EMP_ADD", line 14 ORA-06512: at line 1
Here is my ASP code:
With objCommand
.CommandText = "{Call emp_add(?,?,?,?,?,?)}"
.CommandType = adCmdText
.Parameters(0).Value = varNixUserId
.Parameters(1).Value = varFirstName
.Parameters(2).Value = varLastName
.Parameters(3).Value = varEmail
.Parameters(4).Value = varLeadId
.Parameters(5).Value = varPassword
.Execute()
------------------------
Thanks,
Mav