Solved

Get database usage report

Posted on 2014-02-17
2
167 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
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…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.

705 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

21 Experts available now in Live!

Get 1:1 Help Now