Please enhance the object_name function to allow the database id to be passed as a parameter. There are many of the new DMVs that return an object ID, but if we want to display the name of the object when querying the view, we can only do that for objects in the current database.Sybase added this feature in System 10, which was 15 years ago.Being able to specify the database id (which frequently also shows up in the DMV output) would make the DMVs orders of magnitude more flexible and powerful.
Please wait...