Looking for a script which gives Drive,Diskspacefree,Databasename,Filename,Filetype,Filesize,Spaceused,spacefree,free(%),MaxsizeMB,autogrowthsize,Filegroup

Hi All,
I need a T-script  for sql 2005 and 2008 which should give output as:
Looking for a script which gives Drive,Diskspacefree,Databasename,Filename,Filetype,Filesize,Spaceused,spacefree,free(%),MaxsizeMB,autogrowthsize,Filegroup

In the list below, everything that is in bold face is available in sys.master_files:
Drive
Diskspacefree,
Databasename
Filename
Filetype
Filesize
Spaceused,
spacefree,
free(%),
MaxsizeMB
autogrowthsize
Filegroup
Everything in bold face is in sys.master_files. Diskspacefree is also fairly simple; you can get it with xp_fixeddrives.
Filegroup requires you sys.filegroups in every database, although you can hardcode "PRIMARY" for the file_id = 1.
To get space used per file, it appears that you need to need to visit every database and run fileproperty(filename, 'SpaceUsed') to get the data.
You need to revisit the topics for the views and function I have listed here. xp_fixeddrives is undocumented, but the output is very simple to grasp.
Erland Sommarskog, SQL Server MVP, [email protected]

Similar Messages

  • We are looking for a software which converts SWF to MP4, we found many software which does the job but issue is file size is not optimize.  We found Adobe captivate 6 which gives optimum quality with good output but thing is we do not have batch process i

    Hi
    We are looking for a software which converts SWF to MP4, we found many software which does the job but issue is file size is not optimize.
      We found Adobe captivate 6 which gives optimum quality with good output but thing is we do not have batch process in captivate 6. so we request you to create a plugin or give a best option which have batch render quality and optimize in file size,

    Captivate is e-learning development software not a dedicated video convertor, you are better off trying something like Adobe Media Encoder or Super.

  • Looking for a script that get images' urls from a website

    Hi,
    I have a website where users can insert theirs hotel informations.
    Most of them do not insert photos, I guess because the procedure is quite long and difficoult for the average user's skills.
    I'm looking for a script that take as input the url of the website and give as output the urls of the images of the site, so the user can decide which to upload on his tab.
    Someone can help me?

    La_Salamandra wrote:
    I have a website where users can insert theirs hotel informations.
    Most of them do not insert photos, I guess because the procedure is quite long and difficoult for the average user's skills.
    I'm looking for a script that take as input the url of the website and give as output the urls of the images of the site, so the user can decide which to upload on his tab.
    Someone can help me?
    You have to improve your design. Even if you can find the Coldfusion code, your design will still fall short in 2 ways.
    First, it is unreliable, because you're depending on some arbitrary site to be available and up to speed. Secondly, it is aesthetically wrong to be collecting pictures, especially large numbers of them, dynamically from someone else's site.  Think of their copyright and bandwidth.
    Fortunately, there are simple solutions. First, identify, by eye, the web pages containing the pictures you're interested in. Ask for permission from the owner.
    You could indeed use Coldfusion's cfhttp or any other script to download the JPGs, PNGs, and so on. But then, why waste your time re-inventing the wheel? It is infinitely better to use a web crawler !
    With most crawlers, you only have to supply the URL of the site, and the file extensions it has to grab (in your case, jpg, png, bmp, and so on).
    One click on the button, and you have them reeling in. Automatically. Some crawlers are considerate enough to enable you to adjust the download bandwidth. (We can learn from a million years evolution wisdom. The vampire bat is known to inject a painkiller before sucking!).
    Now that you've downloaded the images to your site, the links you display to your users are all yours. You may choose to resize some of the images, display them as you wish, and the issues of reliability and bandwidth are now up to you.

  • Looking for two BAPIs which will provide me specific BI information

    Hello,
    I am developing something from the Java side and I am looking for two BAPIs which will provide me the following information regarding our BI:
    1. a BAPI that by giving it a userid will provide me a list of the ODSs the users has access to.
    2. a BAPI that by giving it an infoArea will provide me the list of ODSs inside this infoArea. Here, all I could find was BAPI_ODSO_GETLIST which gives me all the ODSs in our Business Wearhouse in all infoAreas.
    Thank you in advance,
    Roy

    hello Maxwell ,
    hhave a look at tcode BAPI , under MM application area.... u will get all BAPIs related to MM modules.
    Identify if a quotation number exists in the system which a specific sales organization.
    Determine the sale price of a material for a specific customer-->u need to ask your functional consultant , may be he is creating info record for that one?
    A simplier way to identify the plant specific status of a material without using the MATERIALGETALL-->use table MARC
    Identify if a specific customer used a supplied purchase order before.
    Identify if a customer has been placed on credit hold-->i think u can make use of tcode vkm4 or custome master data will have all these info.
    regards
    Prabhu

  • Install gets stuck looking for /global/scripts/ac_media.js

    My dad is older and has moved into a retirement home.  He gave us his iMac G4.  We have all of the original install discs (including the Mac OS X 10.2 operating system).  My first problem is that he can't remember his password (even when we share his "hint" with him).  Through a general Google search and on the Apple support site, I have read that I can restart the computer with the OS disc in it, holding the C key down and it will reinstall the OS and I can create a new password.  My problem is when the install starts running, it seems to open the IE and the status bar indicates that the G4 is accessing the Apple site to search for files.  The process gets stuck when looking for /global/scripts/ac_media.js.  I downloaded that file from Apple onto a thumb drive, but didn't know where to copy it into my G4.  Can anyone help me?
    Thanks,
    Julie

    My dad is older and has moved into a retirement home.  He gave us his iMac G4.  We have all of the original install discs (including the Mac OS X 10.2 operating system).  My first problem is that he can't remember his password (even when we share his "hint" with him).  Through a general Google search and on the Apple support site, I have read that I can restart the computer with the OS disc in it, holding the C key down and it will reinstall the OS and I can create a new password.  My problem is when the install starts running, it seems to open the IE and the status bar indicates that the G4 is accessing the Apple site to search for files.  The process gets stuck when looking for /global/scripts/ac_media.js.  I downloaded that file from Apple onto a thumb drive, but didn't know where to copy it into my G4.  Can anyone help me?
    Thanks,
    Julie

  • Hi i have tryed looking for my high definition device driver for my acer

    Hi i have tryed looking for my high definition device driver for my acer 
    I have looked on the acar web site and i cant find it at all i am on windows 7 and the updates didn't install it 
    can some 1 help me find it plz or give me a website to get it 

    You might want to repost your inquiry to the Acer experts in the
    Acer Notebook Support Forum.
    Carey Frisch

  • I blog on TypePad using Word 2007 and documents freeze when I'm looking at them in Windows explorer; why do I get the error message that Mozilla is looking for a script?

    I have now had two error messages - the first one looked for this script: Script: resource://gre/modules/XPCOMUtils.jsm:258. The second one (today) looked for Script: resource://gre/components/nsPrompter.js:68.
    I have reset my word template, also reset word registry for data and options (as per Microsoft's help pages) for both those 'fixes' there was an initial improvement, but the problem happened again after I reposted on my blog today and then went to Windows explorer to view my files. It seems to 'seize' as I select a file, so that the preview does not appear (for up to 15-20mins).
    I see on the internet using the second script as a search just now that one other has had a similar problem and one also since Mozilla 4 upgrade. My problems have also been pretty much since I upgraded.
    It happens (apart from my fixes) every time I go to look at a word document via Windows explorer. Excel files are less affected.
    One web suggestion is to clear the cache, but I am hesitant to lose all my passwords unless I have to.

    I still have the problem although I uninstalled Mozilla (clearing the cache didn't work and neither did Word diagnostics), so have ended up thinking it could be Norton (the manual update worked x1) or Windows. Today I found an answer: disable the preview pane in Windows Explorer - there's a history of problems with this view.

  • I have just recently bought a MacBook Air. I am looking for an email which I put into a folder on my Mac Pro. The smart folders have come across to the Air, but not the 'On my Mac' folders. Are they lost?

    I have just recently bought a MacBook Air. I am looking for an email which I put into a folder on my Mac Pro. The smart folders have come across to the Air, but not the 'On my Mac' folders. Are they lost?

    Are you sure that the "On My Mac" folders weren't empty? If all your mail accounts are IMAP, they may have been.

  • I am looking for an App that gives me some graphics to title pages and margins in word documents

    I am looking for an App that gives me some graphics for Word 2011 title pages, and margins.  A range of screen backgrounds for the page would be useful as my word documents are sent mostly online. ...appropriate for business  topics.

    I use documents to go and find that it works very will. It also has a desktop program that will allow for wifi syncing of documents outside of iTunes. It, like any app, won't have all the bells and whistles and formatting goodies of a full fledged program, but it does have basic formatting (bold, underline, italics, indents)
    I don't think it comes with many fonts, but the iPad itself doesn't have a lot of fonts either.

  • Looking for some app which send SMS when there is Sim change in Iphone 4 G. Do we have any such software which is free

    looking for some app which send SMS when there is Sim change in Iphone 4 G. Do we have any such software which is free or even paid will work.

    I thought that is what the big deal was that people did not know until they opened the box and started using the iPhone 5, that it not only worked with one carrier but several carriers.  I did not say it will work with any carrier at one time.  I was trying to find out the reason for this and why people were so surprised that the iPhone 5 had this function and the reason for it.  As stated in my post, is it there so that after your contract is up and you want to go to another carrier you do not have to purchase a new iPhone, you  cna purchase a SIM card that works with your new carrier.
    The Otterbox Defender has a tendency to let too much dirt, dust, etc. in the cracks on the case. At least this has been my expereince.  I was thinking something more along some of the really durable cases at BallisticCaseCo.com
    As far as the iPhone 5 having issues, I have heard that there were more than usual with the first couple of manufactured batches that were shipped.  For example the Map App by Apple, the scratches on the backside of hundreds of iPhones, etc.  I am hoping these will get to be less and less, but with the recent riot at the one plant in China where the iPhone 5 is assembled is supposed to increase the waiting time.

  • Looking for a script to automate renaming layer objects, not the layer itself!

    Hey there everyone,
    I was wondering if there is a possibility to create/have a script for an automated renaming of several named layer objects in Indesign (CS6).
    The situation, I'm facing is a document for a templating process with at least 80 layers and sometimes some special elements on each layer. The naming of the layers is kind of repeating for each page that is used. The only difference is some prefix change in the layer name and/or the name of an element itself. My problem is, that I need to rename most of those layers AND elements in a same way and I'm looking for a script that asks me for the name of a layer or element (perfect would be just a part of the name to have multiple steps at once) and I have the chance to type in the desired value. It affects frames, graphical elements and text boxes.
    If anyone has an idea, how to simplify this process I would be very glad to get some informations or advices.
    Thanks in advance
    Ralf

    Here is a more descriptive version of the script above... :)
    # Change "PSDrive" to PS1: (Sitecode)
    CD PS1:
    # Get all CMPackages to $CMPackages_All Variable
    $CMPackages_All = Get-CMPackage
    # Set the DP to use with. You may need to run it again with other DP just in case some Packages are missing...
    $DPName_FQDN = "YourDP.Contoso.com" # Your FQDN DP name to reference from.
    # Set folder to store *.pkgx files
    $FilePath = "E:\_ESD\Prestage\" # FilePath
    # For all CMPackages
    foreach ($obj in $CMPackages_All) {
        $packageType = $obj.PackageType
        $packageID = $obj.PackageID
        $packageVendor = $obj.Manufacturer
        $packageName = $obj.Name
        $packageVersion = $obj.Version
        # Formulate File name based on Vendor Name, version and PackageID
     $FileName = $FilePath + $packageVendor + "_" + $PackageName + "_" + $packageVersion + "_" + $packageID + ".pkgx"
        # Replace space with underscore
        $FileName = $FileName.Replace(" ","_")
        if ($PackageType -eq 0) {
            if (!( Test-Path $FileName)) { # This makes the package to skip if it is already created.
                Write-host "Publishing CMPrestage Content for $PackageID $PackageName to $FileName via $DPName_FQDN ..."
                Publish-CMPrestageContent -PackageID $packageID -DistributionPointName $DPName_FQDN -fileName $FileName -ErrorAction Continue
    YPae

  • I'm looking for an application which i can keep my data and password safe in my iphone

    i'm looking for an application which i can keep my data and password safe in my iphone

    Look in the App Store on your iPhone 5S.
    What 'data' and 'password' are you trying to keep safe?
    Your data is best kept safe by regular backups to iCloud (which are only accessible via your Apple ID & password) or iTunes (which is stored locally on your computer, which has numerous security methods, including the ability to encrypt the iTunes backup).

  • Looking for QUALCOMM un2420 windows 8 driver.

    looking for QUALCOMM un2420 windows 8 driver. I try to install the windows7 driver but can`t ......
    PLEASE HELP ME

    go to  action centre 
    trouble shoot
    and follow the instructions
    fix the probem
    i got my mising drivers like that  just try it   best of luck
    <<---------***Click on “Kudos” STAR to say thanks!***    if i helped you to solve  your problem

  • I AM LOOKING FOR ADVANTEST R3271 LABVIEW6.1 DRIVER(GPIB),PLEASE HELP ME. THANKS.

    I AM LOOKING FOR ADVANTEST R3271 LABVIEW6.1 DRIVER(GPIB),PLEASE HELP ME. THANKS.

    Hi,
    I am not sure what the R3271 is, but we have a driver for the R3272 (Spectrum Analyzer with GSM option). Normally API's do not change significantly and so it is very likely that you will be able to use this driver for your application. You can get it by going to www.ni.com/idnet. The easiest way to get the the page is just to seach by vendor.
    Hope this helps out.
    Aaron K.
    Application Engineer
    National Instruments

  • Hi..someone there?i am looking for an app, which can show and calculate. fully excel data from windows.until now i only found apps, which just show, but not calculate

    Hi..someone there?i am looking for an app, which can show and calculate fully excel data from windows.until now i only found apps, which just show, but not calculate.anybody who know an app???

    Look at the Rccharles answer on this post.
    https://discussions.apple.com/thread/6033082?tstart=0
    Also, you can download these free MS Office apps (Word, Excel, PowerPoint) to view (but not create or edit) these files.
    https://itunes.apple.com/us/app/microsoft-word-for-ipad/id586447913?mt=8
    https://itunes.apple.com/us/app/microsoft-excel-for-ipad/id586683407?mt=8
    https://itunes.apple.com/us/app/microsoft-powerpoint-for-ipad/id586449534?mt=8
    Microsoft Office for iPad:Early Reviews of Word, PowerPoint & Excel Apps
    http://ipadacademy.com/2014/03/microsoft-office-for-ipad-early-reviews-of-the-wo rd-powerpoint-excel-apps
     Cheers, Tom

Maybe you are looking for

  • National Freeview TV Guide Update – 17th October

    National Freeview TV Guide Update – 17th October On the 17th October the Freeview TV Guide will be updated.  This update will create extra capacity for new Freeview services and make the guide easier to navigate. As a result of the update, some chann

  • Many issues with ILife '06

    Hello all, I have spent the last couple of hours trying to fix my problems. I have been using Ilife 4 for my projects for over a year now, and I got I life 06. Heres my problems. 1)When making and IDVD project in ImovieHD, I share to IDVD.At first ID

  • How to add a live webcam image in OWC?

    Hi All: We have a customer who wants to use iLearning with collabsuite. They like the way OWC is integrated with iLearning but they have some specific requirements. One of the main requirement for them is to put a live webcam image of instructor/s in

  • Closing a new document with textvariable

    1. In Indesign CS4 version 6.0.2 , if I create a new document and insert a textvariable, I can save the document and I can close it. 2. In scripting Indesign CS4 version 6.0.2 with VB.net (Visual Studio 2008 + Framework 3.5),if I open a document manu

  • Drop cap quotation marks

    Hello, I want to include quote boxes in a document I am creating in ID CS4. I want to make the quotation mark at the start of the quote large. I am using drop cap, but unlike letters, the drop cap causes the quotation mark to have huge white space ud