Global System UDF to return ISO Date string

  • Comments posted to this topic are about the item Global System UDF to return ISO Date string

  • The following code doesn't work.

    EXEC sp_changeobjectowner 'fn_DateTimeToISODate', 'system_function_schema'

    It produces the following error in SQL Server 2008.

    Msg 15411, Level 11, State 1, Procedure sp_changeobjectowner, Line 111

    Database principal or schema 'system_function_schema' does not exist in this database.

    Has this database principle gone away in 2008? I've not checked but did it exist in 2005 or what? What version of SQL Server were you using when this worked for you?

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • I'm thinking this would work on SQL Server 2000 when you could update system tables.

  • Lynn Pettis (3/23/2013)


    I'm thinking this would work on SQL Server 2000 when you could update system tables.

    I'm thinking the same thing but wanted to make sure because it sure would be handy. I wish MS would build a "MasterUser" database that had the "everywhere" capabilities of the Master database and that you could easily add any global proc, view, function, or table that you needed to be globally available. Who knows... maybe by the year 2020 (the year of "a clear vision" :-P).

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 4 posts - 1 through 3 (of 3 total)

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