Forum Replies Created

Viewing 4 posts - 16 through 19 (of 19 total)

  • RE: Temp table in function

    You can't use the CREATE TABLE #TEMPTABLE command to create a table for the duration of the function

    You can create a table for the duration of the function by declaring...

  • RE: getting only date from datetime

    Hi All,

    Thanks for the advice, it is really appreciated.

    🙂

  • RE: getting only date from datetime

    JohnG (5/21/2008)


    tony.sawyer (5/21/2008)


    We've got a UDF called TruncDate that effective truncates the date by removing the time element from it. This mimics the TRUNC() command in Oracle.

    Why do all...

  • RE: getting only date from datetime

    We've got a UDF called TruncDate that effective truncates the date by removing the time element from it. This mimics the TRUNC() command in Oracle.

    ALTER FUNCTION TruncDate

    (

    @InDate DATETIME

    )

    RETURNS DATETIME

    AS

    BEGIN

    DECLARE...

Viewing 4 posts - 16 through 19 (of 19 total)