Solved

Get database usage report

Posted on 2014-02-17
2
168 Views
Last Modified: 2014-02-26
I am looking for information on database usage.

1) Number of requests made to database in past two months (on date basis)
for example, 1/1/2014 - 100 requests made, 2/1/2014 - 94 and so on

2) also I am looking for info on number of unique usernames this from request was made from

Any script I can use to query this information?

-----------
database is hosted on SQL server 2008
0
Comment
Question by:cynx
2 Comments
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 250 total points
ID: 39864917
If you are not logging these requests in some form or fashion, you are to put it bluntly SOL.
0
 
LVL 69

Assisted Solution

by:ScottPletcher
ScottPletcher earned 250 total points
ID: 39865216
SQL Server does not by default keep a file or table of database connections.  It would be huge overhead that most people would never use.

Therefore, if you need that type of info, you must put something into place to capture that info into a file or table.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

867 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now