To execute DML statement within IF block we need to use command named "EXEC"..
E.g.
IF EXISTS(SELECT * from SYSOBJECTS WHERE name LIKE 'XXXXXX')
BEGIN
EXEC(' ALTER TABLE XYZ ............')
END
Design Patterns | ||||||||||||
| Creational Factory Patterns | ||||||||||||
| ||||||||||||
| Structural Factory Patterns | ||||||||||||
| ||||||||||||
No comments:
Post a Comment