Your example works, however I am doing the same thing in my code and it
doesn't work there. I was hoping this was a well known problem and therefore
I did not include any code.
Anyway, I created an example to reproduce the problem. Please note that two
different databases are involved.
Database1
-- This procedure has obviously been simplified from it's original version.
BEGIN
raiserror( 'ERROR!', 16, 1 )
END
Database2
CREATE PROCEDURE Test AS
BEGIN
INSERT INTO SMStoreOrderLine
END
> Please post some sample code instead of verbal descriptions. How does
> your RAISERROR statement look? What is the severity of the error? There
are
> so many different ways to call RAISERROR. Here is an example that will
work
> fine:
> create proc #s as select 1 raiserror( 'ERROR!', 16, 1 )
> go
> create table #t( i int )
> insert into #t ( i ) exec #s
> drop proc #s
> drop table #t
> --
> Umachandar Jayachandran
> SQL Resources at http://www.umachandar.com/resources.htm
> ( Please reply only to newsgroup. )