Uri Dimant
3/13/2007 2:02:00 PM
Mark
First of all try to avoid operate with the tables in Scalar UDF, it may hit
performance
Secondaly, can you show the source of UDF?
"Mark Goldin" <mgoldin@ufandd.com> wrote in message
news:%232UrscXZHHA.208@TK2MSFTNGP05.phx.gbl...
> DECLARE ProcessScan CURSOR FAST_FORWARD FOR
>
> select ReadingTime from udf_GetAllJobScansUser(@Job, @User_id)
>
> order by id
>
> I am getting an error:
>
> Select statements included within a function cannot return data to a
> client.
>
> "Uri Dimant" <urid@iscar.co.il> wrote in message
> news:O%23FrqUXZHHA.3928@TK2MSFTNGP03.phx.gbl...
>> Mark
>> You can create WHILE loop ,perhaps if you would explain what are you
>> trying to achive we would give you a better suggetion
>>
>>
>>
>>
>>
>> "Mark Goldin" <mgoldin@ufandd.com> wrote in message
>> news:%23a5WePXZHHA.1580@TK2MSFTNGP05.phx.gbl...
>>> Can I declare a cursor in a scalar-valued function?
>>>
>>> Thanks
>>>
>>
>>
>
>