sp_execute vs. sp_executesql

  • I cannot find any documents to confirm this so if someone could confirm the below it would be appreciated.

    sp_execute and sp_executesql do the same thing but sp_execute is an older version of sp_executesql.

    I have an application where they claim they are sql2000 sp4 compatible yet they use sp_execute opposed to sp_executesql.

    Should they not be using sp_exectutesql opposed to sp_execute ??

    Please help me understand the differences or a link where it is documented.

     

     

     

  • sp_execute and sp_executesql are not the same thing.

    sp_execute is used with prepared statements by client APIs. (ODBC, ADO.NET etc)

    sp_executesql is used by tsql for dynamic queries.

     

Viewing 2 posts - 1 through 1 (of 1 total)

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