SharePoint Databases - How to determine which ones are being used and which ones aren't

I am not sure where to exactly post this question.  On the SQL Server side or on a SharePoint side.
I am a SQL Server Database Administrator who is monitoring some SharePoint databases.  On a daily basis it seems that they are creating new databases but don't delete the databases that they are no longer using.  For example, they might be testing
on a development server and if things aren't working properly instead of asking that the databases be deleted they just go ahead and create new databases to do what ever they need to do.  Is there a way on the SQL Server side to determine which SharePoint
databases are being used and which ones aren't being used?  Or does one determine this information through the SharePoint Central Administration console?
lcerni

Hello,
The following query gives you the databases now in use.
SELECT
DISTINCT d.name
FROM
sys.dm_tran_locks
tl INNER
JOIN sys.databases
d
ON
tl.resource_database_id
= d.database_id
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com

Similar Messages

  • When i do a backup to my computer, which things are being saved and which aren't?

    When i do a backup to my computer, which things are being saved and which aren't?

    You need more than one backup. Hard drives do fail. You can also try a clone.
    Clone  - Carbon Copy Cloner          (Often recommended as it has more features than some others)
    Clone – Data Backup
    Clone – Deja Vu
    Clone  - SuperDuper
    Clone - Synk
    Clone Software – 6 Applications Tested
    Commonly Used Backup Methods

  • How to determine if reports are being run/used

    I have two Crystal report environments.  One being version 7.5 and the other is version 10.  Between them, there is a very large number of reports (1000's) that accumulated over the years. I am looking for a way to be able to tell which reports are being run and actually used. By used I mean actually being pulled from the repository.   I do not know all the specific details of the environments and not a CR expert so it is hard for me to provide too much more details.  Any help or suggestions on how to try to determine which reports are being used is greatly appreciated.

    You mention; "Crystal report environments"
    and
    "pulled from the repository"
    Question is; what is the Crystal report environment in your definition? E.g.; what is the actual product? It could be what used to be called Crystal Info (v 7), Crystal Enterprise (v. 10). Or it could be an app written by someone in your organization. Or it could be an app written by a 3rd party.
    In any case, getting answers for these products will be difficult as you're looking at products that are close to 10 years out of support (v. 10) and well over 10 years out of support (v. 7).
    - Ludek

  • How to find out which queries are being used ?

    We have a number of InfoSet Queries which the users are calling from SQ00. Some of them are very old.
    I would like to find out which queries are being used, so we can have the idle queries decommissioned.
    How can this be done ?
    Best regards,
    Peter

    Hi,
    It's been a while since I've done this but one method is to use ST03N & look for the execution of programs with an AQ* prefix.  The general structure is AQZZ/<query user group><query name>.
    You could probably get the same info from the audit log but I've not checked that.
    Cheers,

  • How to know which port is being used by which process

    Hi,
    Could you please tell me how to know which port is being used by which process.as iam getting ports are already in use.
    Thank you,
    Sravan
    Message was edited by:
    sravan123

    Your OS might provide a command to support this question like '"netstat".
    Besides, on Unix the pseudo-file system /proc is also useful.

  • I use Yahoo Calendar on my IPhone.  For whatever reason when I go into my calendar I will see at the top of the screen that 5 or 6 "calendars" are being used and one of them is the one I called Dana_Gardner and is legitimate, the others are randomly named

    I use Yahoo Calendar on my IPhone.  For whatever reason when I go into my calendar I will see at the top of the screen that 5 or 6 "calendars" are being used and one of them is the one I called Dana_Gardner and is legitimate, the others are randomly named with letters and numbers. Why is the IPhone creating additional "calendars"? I only asked for one to be set-up. I don't understand, I have to go into the calendar settings daily and uncheck these un-asked for calendars. Help!

    Mine is doing the same thing.  I deleted the whole account from the mail settings and it got rid of most of the extra calendars.  But there are still 2 gibberish ones left.

  • Deduplication: how to identify which files are "in-policy" (and which are not)?

    Dear experts,
    in eventlog I find the following information for one of my deduplicated volumes:
    Volume: F: (\\?\Volume{9794e270-fb08-487e-979b-8a08fa9ca311}\)
    Error code: 0x0
    Error message:
    Savings rate: 24
    Saved space: 853327714684
    Volume used space: 2681869406208
    Volume free space: 66771247104
    Optimized file count: 1199618
    In-policy file count: 1188049
    Job processed space (bytes): 0
    Job elapsed time (seconds): 2
    Job throughput (MB/second): 0
    Some things look strange to me: 
    - The savings rate is only 24% which looks odd because I get about 40% on other file shares with similar characteristics.
    - The "Optimized file count" is higher than the "in-policy" file count.
    - The volume has about 3.5 million files but only 1.1 million files are "in-policy".
    My understanding of "in-policy" files is that all files are in-policy which are older than 3 days (if not configured different, which is not the case) and which are not contained in an excluded folder (nothing configured here) and which have no
    excluded file extension (nothing configured here apart from the default). Right?
    I'm sure that only a small fraction of the files on this volume are younger than three days, so something seems to be wrong there, but I have no idea how to find the cause of the problem.
    Is there any way to identify the files (full path) which are considered to be not "in-policy"?
    How can I find out if the optimization process really looks at all files - and doesn't skip a million?
    Thanks!
    Regards
    Christoph

    Mandy, thanks for your feedback! I've read these technet articels, but I couldn't learn something really helpfull related to my problem there. To make investigation of the problem easier I did the following:
    - created a brand new empty volume (x:) on the same server
    - enabled data deduplication on that volume with a minimal file age of 0 days
    - copied about 2GB of data from the problem-volume in 15450 files to this new volume
    - started "Start-DedupJob x: -Type Optimization -Memory 50"
    After a few seconds that job completed and I got the following result:
    Volume: X: (\\?\Volume{d1ba9ed8-28f1-44d1-9535-fe603d6a70c6}\)
    Error code: 0x0
    Error message:
    Savings rate: 0
    Saved space: 12360718
    Volume used space: 3091664896
    Volume free space: 7610097664
    Optimized file count: 153
    In-policy file count: 153
    Job processed space (bytes): 46095214
    Job elapsed time (seconds): 9
    Job throughput (MB/second): 4.88
    The question is: why are only 153 files in-policy?
    All files (of more than 15000) are of course "older than 0 days", there are no excluded folders configured, there are no excluded extensions configured, no file has one of the default excluded extensions and more than 1000 files are bigger than 100kB
    (minimal size for deduplication is 32kB). So what makes only 153 files qualify for deduplication?
    My impression is that there are further undocumented requirements which have to be met by a file to qualify for deduplication. But if there's no detailed log of an optimization run available how to find out what's going on?
    (Or is something going wrong on my server?)
    Kind Regards
    Christoph

  • How to see what Tables are being used in all reports

    Post Author: tmashley
    CA Forum: Crystal Reports
    Hello,
    How can I see what database tables are used in all my online reports? I have around 1000 reports posted to Enterprise over 6 different datasources. If possible I would like to see the fields within those tables that are being used to.
    I am using Crystal Reports XI Release 2
    Any help is appreciated
    Thanks,
    Tom

    I don't think you can see the databases of the reports unless you download the report onto your pc as a Crystal Report format and then open it under Crystal Reports.
    This way it will open the report within Crystal Reports and will show you the datasource it is coming from.
    I doubt if you can see them online.
    Kind Regards
    Jehanzeb

  • How to find which tables are being used by a workbook.

    I was asked by the client to generate a report which will show the Workbook name and it's corresponding tables/views.
    Any idea on how to use the EUL tables for this purpose. I know the SQL query to find the tables in case the workbook was run at least once. But I want to show the Workbook and it's table details even the report was never run.
    Advanced thanks,
    Lokesh.

    Hi Jay
    While we're on the subject of scripts, here's a couple more you might like:
    Script 1:
    =========
    This one shows you how many times an item has been used. It is useful for determining how often users make use of items in a folder. It could be used as research for a materialized view, for dropping items which are not used, or for understanding usage.
    SELECT
    OBJ.OBJ_NAME FOLDER,
    EXP.EXP_NAME ITEM,
    COUNT(QPP.QS_ID) USAGE
    FROM
    EUL5_OBJS OBJ,
    EUL5_QPP_STATS QPP,
    EUL5_EXPRESSIONS EXP
    WHERE
    OBJ.OBJ_NAME = <Folder Name>
    AND OBJ.OBJ_ID = EXP.IT_OBJ_ID
    AND INSTR(QPP.QS_OBJECT_USE_KEY,OBJ.OBJ_ID) > 0
    AND INSTR(EUL5_GET_ITEM_NAME(QPP.QS_ID),EXP.EXP_ID) > 0
    GROUP BY
    OBJ.OBJ_NAME,
    EXP.EXP_NAME;
    Script 2:
    =========
    This one examines the whole EUL and displays a count of the number of times a worksheet has been run by folder. It also shows the date and time of the last run. This one is useful to determine the most and / or least popular worksheets. Adjusting the ORDER BY clause can throw up some interesting results.
    SELECT
    OBJ.OBJ_NAME FOLDER,
    MAX(QPP.QS_CREATED_DATE) LAST_DATE,
    QPP.QS_DOC_OWNER OWNER,
    QPP.QS_DOC_NAME WORKBOOK_NAME,
    QPP.QS_DOC_DETAILS SHEET_NAME,
    COUNT(QPP.QS_ID) USAGE
    FROM
    DRAKE.EUL5_OBJS OBJ,
    DRAKE.EUL5_QPP_STATS QPP
    WHERE
    INSTR(QPP.QS_OBJECT_USE_KEY,OBJ.OBJ_ID) > 0
    GROUP BY
    OBJ.OBJ_NAME,
    QPP.QS_DOC_OWNER,
    QPP.QS_DOC_DETAILS,
    QPP.QS_DOC_NAME
    ORDER BY
    OBJ.OBJ_NAME,
    COUNT(QPP.QS_ID) DESC;
    I'm considering a blog entry of useful EUL scripts. Anyone interested? Yes - either reply here or drop me a line.
    Best wishes
    Michael

  • Which tables are being used to extract the data for the materi Extractors

    Hi
    please advise which tables are used to extract the data for the extarctors
    0MAT_SALES_ATTR,
    0MATERIAL_ATTR,
    0MAT_PLANT_ATTR
    0PLANT_ATTR
    ,Many thanks.

    Hi,
    Activate a database trace using ST01. Then perform the MM03 operation and goto the SD Texts tab. Now stop the trace and see if you can locate either a table or program which you can utilize in the log.
    http://help.sap.com/saphelp_47x200/helpdata/en/dd/55f993545a11d1a7020000e829fd11/frameset.htm
    Hope this helps..
    Rgs,
    Ravikanth.

  • How to Tell Which GPU is in Use and Which CPU Speed

    Is there some way I can find out what clock speed my i7 is running at (i.e. whether or not the computer has gone into over drive) and which GPU is being run at any given time?
    Maybe it is just too soon for a widget, but is there any other way?

    Yes, go to System Profiler.
    On the menu bar
    - Click on the Apple logo > About This Mac
    - Click on More Info...
    - Select Graphics/Displays
    - Select either of the graphics cards. The one that's active will display a load of info in the panel below. The one that's off will say no display connected.
    I don't think there is another way of telling. I'm sure some app will appear or perhaps iStat Pro may include it in future.
    Hope this helps.
    Message was edited by: gtds

  • How To know Which Columns are not null and Which are null

    Hi Freinds,
    I want to Know ,How by Wrting a Query we can get the Names of The Columns from the Table which is set to not-null or null,
    Thanks
    Shoaib

    SELECT * FROM user_tab_columns
    WHERE table_name='Your_Table_Name'Check NULLABLE column.

  • Which infrastructure are you using and why?

    Dear Portal Experts,
    I would be most interested in learning which tools portal developers are using in their daily work. I have therefore started a survey at the Collaboration Workspace (actually a discussion - 'survey' was not available).
    I would be happy if the readers of this forum could also participate to collect this information.
    Thanks a lot,
    Björn

    Still kinda debating on the two. I have the 8GB 3G right now and don't fill it up a lot.. but I also have another MP3 player that i keep my music on and don't take a ton of pictures. But I know with the better camera and video recording, I will be using it a lot. I am pre ordering tomorrow, but still undecided. Just don't know that I want to spend an extra $100. I can always transfer my pictures to my computer (or website) if I needed to. Just keep the ones I really want. Videos I will probably keep on my computer for sure. Guess I will go with the 16GB. Still leaves me room for songs (I like to keep around 200 at a time for a variety at work), pictures, apps, and some video.

  • How make an appear windows for the use and enter one value?

    Hi everybody,
    I posted already once but my post has disappeared.
    I am new in programming with labview.
    I am doing an intern ship in a company and I would like to Improve an existing software.
    The purpose of the software is to a syringe pump manages to fill a nozzle (connected to
    an atomizer) and After spraying has pricise Amount on flies.
    So, first, the software Was Divided in to share. I made folders to put in one.
    -> Until this, it works
    Now I would like to make a program executive for purpose That I-have to, first, find a solution
    to control the syringe pump. I explain my self: When I am running the software, the syringe
    pump start to run by himself and the User has not the time to enter some values. For safe, I tried
    put a button to start the problem Is That goal block the software Spraying Because it s use as a
    SubVI. So My idea: I would like to bring-up has windows, Where the user can enter all His gains
    push a button and OK to run the software.
    If someone HAS an idea Will it really help me !!
    Have a good day
    Anais

    Sounds like you are just looking for a simple dialog box with some fields for the user to enter the required parameters. There are lots of examples if you look around, but here is a quick simple one. The three values enterd are bundled into a cluster for convenience, and it includes a 'cancelled' output in case the user changes his mind.

  • How do i find what ports are being used.

    I need to know how to tell what ports are being used and by what. I recently bought Apple Remote Desktop and have been pretty impressed but I have one computer here that won't let me Observe or Control. I think it is because the G4 in question has a program using port 5900. I need to confirm this is there any way that I can see if this port is being used?
    Thanks
    Moderith

    Hi Moderith--
    Welcome to the Apple Discussions.
    Look in your Utilities folder for the Network Utility program. Open it, and choose "Port Scan" from the row of tabs in its window. If you're not running Network Utility on the problematic G4, use the G4's IP address. But if you're actually on the G4, use "localhost".
    Note that if you check the open ports on the G4 from another computer, you won't see as many as if you check it from the G4 itself. That's because some ports are only local. For example, I have enabled the mail server on my Macs, but only to deliver mail, not relay it. So if I do a port scan using "localhost", I see port 25 open, but it's not open from another computer.
    charlie

Maybe you are looking for

  • External hard drives and Error Code -36

    Just wanted to know if anyone knows what this error code means. I tried copying a bunch of video files about 600-700 mb to my USB external hard drive, and this error message popped up and said the disk could not be read or written to. I contacted the

  • Black window with white letters

    In the past several days a black window appears on the desktop with white writing saying restart your computer as there is a problem with the hard drive. I restart and the computer works just fine. I have a imac intel.

  • Latency when converting from 5.3 (PC)?

    I have received a song made on Logic 5.3 on a PC. It seems to load/convert OK to 7.1.1 but there is a tremendous amount of latency when playing software instruments in the old song. Any ideas? If I have a new song and the old one open at the same tim

  • System Update down?

    Dear all, whats about System Update/Update Retriever? Since Monday, we can´t download any update via System Update or Update Retriever. The Telephone hotline has no further status about this issue. Have anyone an info when the system is online again?

  • I have downloaded & installed the eBay Toolbar, but there is no sign of it?

    Having downloaded the latest version of Firefox, I am increasingly finding it difficult to understand. I need the "eBay toolbar" to operate eBay, so have downloaded it from the web. According to it's installer it is now in place, but it has not appea