EXECUTE IMMEDIATE statement [SP]

Enables dynamically-constructed statements to be executed from within a procedure.

 Syntax 1
 Syntax 2 - Transact-SQL
 Parameters
 Remarks
 Permissions
 Side effects
 See also
 Standards and compatibility
 Examples