Community

Executing Dynamic SQL Using sp_executesql

(Greg Larsen) There are times when an application needs to execute dynamic TSQL. Dynamic TSQL is SQL code that is generated by a program then executed.