Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
T-SQL (SS2K5)
»
Dynamic Query in UDF?
Dynamic Query in UDF?
Rate Topic
Display Mode
Topic Options
Author
Message
SqlUser-529296
SqlUser-529296
Posted Thursday, May 29, 2008 11:48 PM
SSC-Addicted
Group: General Forum Members
Last Login: Wednesday, October 14, 2009 1:56 AM
Points: 438,
Visits: 754
Hi all,
Is it possible to use Dynamic Query in UDF?
If yes, tell me how to execute this dynamic query inside of the UDF.
---
Post #508829
Torsten Schüßler-406123
Torsten Schüßler-406123
Posted Friday, May 30, 2008 12:22 AM
SSC Rookie
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 1:03 AM
Points: 25,
Visits: 307
Hi sqluser,
you cannot execute a stored procedure or dynamic statement from a function. But what about ...
http://www.sqlservercentral.com/articles/T-SQL/61918/
and
http://www.sommarskog.se/share_data.html#OUTPUT
CU
tosc
www.insidesql.org
Post #508850
Jeff Moden
Jeff Moden
Posted Wednesday, June 04, 2008 6:37 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 9:01 PM
Points: 33,111,
Visits: 27,037
sqluser (5/29/2008)
Hi all,
Is it possible to use Dynamic Query in UDF?
If yes, tell me how to execute this dynamic query inside of the UDF.
---
What's the query?
--Jeff Moden
"
RBAR
is pronounced "ree-bar" and is a "Modenism" for "
R
ow-
B
y-
A
gonizing-
R
ow".
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #511305
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.