I have a table with the following schema, that contains TSQL queries.
ID | ViewName | Query |
---|---|---|
1 | vwPersons | Select * from tblPersons |
2 | vwPosts | Select * from tblPosts |
How can I select the second query (ID=2) from the above table and execute that query?