Hi
I am planning to call a stored Proc from another stored Proc...
what will be the right syntax..will the following work..
----------------------------------
CREATE PROCEDURE [dbo].[SPUpdateDelLookup]
( @OldTypeCode [varchar](3),
@NewTypeCode [varchar](3),
@NewTypeDesc [varchar](128))
AS
IF EXISTS(SELECT TypeCode FROM Lookup WHERE TypeCode = @OldTypeCode)
BEGIN
EXEC dbo.SPDeleteLookup @OldTypeCode
EXEC dbo.SPInsertLookup @NewTypeCode,@NewTypeDesc
END
GO
----------------------------------