What is your current code? The function worked for me and I didn't see any messages.
>Sergey,
>
>It's working. The table is being dropped, however the message
>"Database name 'tempdb' ignored, referencing object in tempdb"
>appears in the results pane each time I run it.
>
>
>
>
If it's not broken, fix it until it is.
My Blog