Here is a case where I am running SQL select statement on local string.
If I run normal select query for my tables then it works.
select * from tablesname
But if I have following case :
declare @string nvarchar(400)
set @string = N'from tablesname'
Now if I run select * from @string , it is not working as expected.
Please suggest me for to resolve this problem, since I want to run the select statement in this way only. If I should try some other way, then suggest me that.
Thanks, Tausif.