How to use @sqlstatement in SQL Server

Asked

Viewed 71 times

3

As I can make better use of the @sqlstatement variable in SQL Server, I couldn’t understand what its real function is.

Please explain to me and leave some examples?

I ask that if possible do not use image because I am visually impaired and readers can not read prints.

  • 3

    I didn’t get it right. As far as I know, this is a variable name like any other. But by name, I suppose it contains an SQL statement. Is that it? In that case, you can use sp_executesql to execute the instruction contained in the variable.

  • I also don’t understand the question, this is not a reserved word and it seems that you are having trouble understanding a specific example of code. Please rephrase the question and post the code you’re not understanding

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.