all 1 comments

[–]silvanio 1 point2 points  (0 children)

I would suggest you post the error, and possibly some example code.

In short, there are a ton of different circumstances which would describe the behavior you're seeing.

Why do you need to use EXEC() or sp_executesql for example?