Apparently, I can’t use them. I’m getting an error message like:
Invalid use of a side-effecting operator ‘SELECT’ within a function
If I want to do something like this:
select bleh
into #temp
from Blah
… inside a function.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, per this thread where the same question was asked, you cannot, but you can use a
table variable