Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Executing a Variable in a Stored Procedure containing an Update Statement

$
0
0

Hi,

I have created a Stored Procedure, it has one input parameter. Inside the Stored Procedure there are 5 other variables are declared, based on the input parameter 4 of these variables are populated.

Fifth variable is a a concatenation of text and some of these variables and creates a dynamic Update Statement. Once it is created I want to execute this variable but it is not executing.

Could someone please help me in knowing how to execute a variable within a stored procedure that contains an update statement.

Thanks for your help.

Thanks
Vineesh


vineesh1701


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>