Question of the month February 2015 – Why is dynamic SQL not allowed in an UDF?

You cannot use Dynamic SQL in an User Defined Function. Why is it not possible?

Advertisements

2 thoughts on “Question of the month February 2015 – Why is dynamic SQL not allowed in an UDF?

  1. Thats because we will not be able to change that affects the database state within function. As long as dynamic SQL can contain anything even update/insert/delete, Dynamic SQL is not permitted in UDFs.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s