Solved

View tables opened in SQL 2005

Posted on 2008-09-30
3
161 Views
Last Modified: 2012-05-05
Is there a way to view the opened tables under SQL 2005 when a user access a ERP application ? Hence, I could find out the right tables to build the reports.
0
Comment
Question by:AXISHK
  • 2
3 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 22603284
you could run a SQL profiler trace, and there all the sql run against the database.
that's the way to go, you just have to set up to get all the sql:starting, and filter eventually by the user/database ...
0
 

Author Comment

by:AXISHK
ID: 22603377
For "sql-starting", is the the Events  TSQL --> SQL:StmtStarting and ignore the other events ?

For filter "user/database",  do you mean "Column Filters.." Button --> LoginName ?

I'm using SQL 2005.

Many thanks.
0
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 22603390
>For "sql-starting", is the the Events  TSQL --> SQL:StmtStarting and ignore the other events ?

yes

>For filter "user/database",  do you mean "Column Filters.." Button --> LoginName ?

yes
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Testing connection to sql 7 63
SQL Trigger selecting another database 4 41
Help with SQL - TOP 10 by date and by group 13 40
Email Notifications for SQL 2005 9 36
by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question