I think the only way you could do this is by creating a temp table with a text field. This temp table does not need to have more that 1 field or 1 record.
Create Table #TextTable (TextField Text)
Insert Into #TextTable(TextField) Select SomeCol From MyTable Where MyId = SomeValue
I know this will make writing the SP much more difficult. I.m sorry that I don't have a better answer for you.
-George
Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
Ok
In my case I need to get this variable(text) from the table
and then I need to pass this variable to a stored proc.
-------
Here is my table create (id int identity,message text).
I need to get "message" variable from this table and pass to a stored proc.
Here is stored proc:
sp_myStoredProc @message
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.