I want to create a stored procedure with a varchar input parameter. The parameter will be a view's name. I want the sp to return the results of "Select * from " & [view name]
Some years ago, I recall writing a sp that took a String and executed it as sql statement. I want to use this technique again. I want to initialize a String with the value "Select * from " & [view name]. Then I want the machine to treat the string as a command to execute.
Can you refresh my memory on the syntax??
Some years ago, I recall writing a sp that took a String and executed it as sql statement. I want to use this technique again. I want to initialize a String with the value "Select * from " & [view name]. Then I want the machine to treat the string as a command to execute.
Can you refresh my memory on the syntax??