sql server - sp_executesql with a string from db -


How can I get a record (like 'Select 1') from a record and make it eval it Pass sp_executesql

something like that?

  DECLARE @MySQL nvarchar (MAX) SELECT @MySql = MyClable to SqlColumnMyId = 1 EXEC (@MySql)  

Comments

Popular posts from this blog

email - PHP mail error ... failed to open stream : permission denied -

sql server - SQL Query - Delete duplicates if more than 3 dups? -

c - Different access levels with PAM -