February 21, 2007 at 9:06 pm
I ran the profiler for 7 hours (template SQLProfilerSP_Counts) , how can get the information about DatabaseID,ObjectID,SPID?
I mean which database (databaseID) , sp name (ObjectID) ...
Thanks in advance.
SR.
February 21, 2007 at 9:21 pm
You can use the DB_NAME() function to get the database name
e.g. Select db_name(11)
The object id is specific to the database that the object is in (and the same object may have a different name if it exists in two different databases.
To get the object name, connect to the database (probably using the name returned by db_name() )
and then use the object_name() function.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy