Hi,
Have you got any progress?
Based on my tests, I could run sys.sp_executeSQL in my stored procedure within SQL Server 2008 Express Edition. Could you please post your stored procedure script here?
Here is a sample code that I use:
CREATE PROC dbo.sp1
AS
BEGIN
EXEC sys.sp_executeSQL N'SELECT @@VERSION'
END;
GO
Please let us know if you have any question.
Best Regards,
Chunsong Feng
Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.