call extended sp in function

  • sp_executesql is an extended sp

    how come i can't use this inside a function?

    get this error

    Only functions and extended stored procedures can be executed from within a function.

  • Extended stored procedures have names prefixed with 'xp_'...

  • sp_execute is listed under 'Extended Stored Procedures' -> 'System Extended Stored Procedures' in SQL 2005

  • According to MSDN2 (http://msdn2.microsoft.com/en-us/library/ms187961.aspx), sp_executesql is listed under category [Database Engine Stored Procedures], whilst 'xp_' stored procedures are listed under [General Extended Stored Procedures]!

  • i'm looking at my sql 2005, and it's listed where i said it was.

  • sp_executesql is not an extended sp it is internal to sql server, extended sp (xp_) are dll's

    Far away is close at hand in the images of elsewhere.
    Anon.

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply