tags:

views:

30

answers:

1

how do we implement dynamic stored procedure and do they relate to dynamic functions and dynamic queries in sql server ?

Kindly enlighten...

+6  A: 

There is only dynamic SQL which refers to the practice of creating a T-SQL text and executing it using the sp_executesql (or simply exec): The Curse and Blessings of Dynamic SQL.

Stored procedures can execute dynamic SQL, functions cannot.

Remus Rusanu
+1 This is the the bible on dynamic SQL
SQLMenace