A situation has arisen where I would like to be able to run the folloing kind of command.
I have to build the statement up in a string and execute it. I also have to pass the returned figure into a seperate variable.
Ideally I would like to be able to run :
select @value=exec(@SQLSTRING)
but this does not seem to be supported.
ANY IDEAS??
Cheers,
M@.
I have to build the statement up in a string and execute it. I also have to pass the returned figure into a seperate variable.
Ideally I would like to be able to run :
select @value=exec(@SQLSTRING)
but this does not seem to be supported.
ANY IDEAS??
Cheers,
M@.