Solved

Get database usage report

Posted on 2014-02-17
2
171 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:Scott Pletcher
Scott Pletcher 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Nested Case statement 4 38
MS SQL query to show nearest date 6 39
SQL 2012 clustering 9 12
SQL Find Carriage Return and Delete it. 3 13
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

828 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