Evaluating data in a column

  • Hi,

    Does anyone know of a way of 'evaluating' the data in a column(field) using the select statement, e.g if I have the string

    getdate() in a particular column of a row, how can i make my select statement return the actual date instead of the string getdate().

    Cheers,

    Tino

  • I think you may be stuck with using a stored procedures that run sp_executesql to evaluate the string.

    An ideal solution would be a function that could use sp_executesql but unfortunately the calling of stored procedures from functions isn't supported.

    Cheers,

    - Mark


    Cheers,
    - Mark

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply