• Your @title is null (not set), hence function is returning NULL. Why quirky update? It is probably the last thing I would do.

    _____________________________________________________
    Microsoft Certified Master: SQL Server 2008
    XDetails Addin - for SQL Developers
    blog.sqlxdetails.com - Transaction log myths