SQL Server Trace

  • All,

    I have not used Profiler very much but I am trying to trace the activity of a specific database by using the Database name Like 'dbname' in the Filter Tab but when I run the trace it shows activity on other databases.

    Am I doing something wrong?

    Any help would be appreciated.

    Regards

    Carl

  • filter on dbid

     

    USE master

    SELECT name, DB_ID(name) AS DB_ID

    FROM sysdatabases

    ORDER BY dbid

  • That was going to be my next test.

     

    Thanks

     

    Carl

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

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