executesql
execute (N'select * from Student')--正確
execute ('select * from Student')--正確
-------------------------------------------------------
sp_executesqlcode
sp_executesql N'select * from Student'--正確
sp_executesql 'select * from Student'--錯誤 sp_executesql 只能執行Unicode或能夠隱式轉換爲ntext的字符串常量、變量。 字符串