How can we find the most usage and lowest usage of table in Sql Server by T-SQL

how can we find the most usage and lowest usage of table in Sql Server by T-SQL
The table has time stamp column
StartedOn datetime
EndedOn datetime

The Below query has been used , but the textdata column doesnot include the name of the table ServiceLog.
SELECT
FROM
databasename,
duration
fn_trace_gettable('F:\Program
Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log\log_148.trc',
default)
WHERE
DATABASENAME='ZTCFUTURE'
AND TEXTDATA
IS
NOT
NULL
--AND TEXTDATA LIKE 'SERVICE%'
order
by cpu
desc; 

Similar Messages

  • How can if find the most repeated character and number ???

    Hi,
    I have a question. For instance, if we have a text file which contains:
    aaabbbhhhhhhtttttsjs12366
    How can i find the most repeated character and number. I have to add this code to the following program:
    I will aprreciate if you can help.
    Regards,
    Serkan
    import java.io.*;
    public class LineLen {
         public static void main(String args[]) throws Throwable {
              final String filename = "deneme1.txt";
              BufferedReader infile = new BufferedReader(new InputStreamReader(new FileInputStream(filename)));
              String line = infile.readLine();
              int linenum = 0;
              while (line != null) {
                   int len = line.length();
                   linenum++;
                   System.out.print(linenum + "\t");
                   for (int i = 0; i<len; i++)
                   System.out.print("*");
                   System.out.println("");
                   line = infile.readLine();
    }

    For a small alphabet like English, array migt be used:
    //in a for loop
    ++array[s.charAt(i)];For a big alphabet like chinese, HashMap might be barely used:
    map.put(s.charAt(i), increment(map.get(s.charAt(i))));
    // increment is a user defined method, possibly for an Integer object,
    // that returns a new Integer object

  • How can I find the Host Name and Instance #

    I am having trouble finding the host name and instance #. Thanks in advance.

    Hi Kyle,
    Hope you are doing good.
    if it is the R/3 server, the easiest option would be to navigate to /nSm51 .  
    Hope this helps.
    Kind Regards,
    Hemanth
    SAP AGS

  • How can you find the Last Modified Date of a particular table

    Hi,
    I want to show to the LAST MODIFIED date of a particular table to the user before refreshing the table with new data. Experts please suggest me the way using JDBC-SQL connection.

    There is no generic SQL way for this. It depends completely on the features your DBMS offers. With Oracle you'd need to create column which gets updated in a trigger. I believe MS SQL Server offers a special data type for this, which is updated automatically. I don't know about others.

  • How can I find the date modified and group membership in contacts?

    I used to have a smart group that could show the modification date, but those criteria don't exist in mountain lion (ML)
    i also had a script that would find any contact that was not a member of any group. It does not work any more in ML.

    still can't figure it out

  • How can you find the More Dense and less sparse in the Outline?

    can anyone explain me the optimatization of Rule file? Thanks n advance!!!

    Have a read of - optimizing data loads
    or there is a whole section dedicated to it in dbag - http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_dbag/frameset.htm?ddldebug.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How can I get the administrators name and password so I can download the latest os this is a refurbished iMac

    How can i find the administrator name and password for my  iMac .
    This was a refurbished product purchased online and i need this info to download new things form the apple store ?

    See #5
    Step by Step to fix your Mac

  • I am trying to download xfinity tv go app. I can not find it in my App Store and can not download it from the comcast website. All I get is a blank screen in the App Store. My Apple ID is associated with a Canadian address. How can I find the app?

    I am trying to download xfinity tv go app. I can not find it in my App Store and can not download it from the comcast website. All I get is a blank screen in the App Store. My Apple ID is associated with a Canadian address. How can I find the app?

    Its possible the App is not available in the Canadian store if the link doesn't work for you.
    https://itunes.apple.com/us/app/xfinity-connect/id320788270?mt=8

  • Hello! I have one iTunes library on my iPod and one iTunes library on my computer. When I connect my iPod touch to my PC, however, I cannot find any files in my iPod except for pictures. How can I find the music files so I can add them to my iTunes?

    Hello! I have one iTunes library on my iPod and one iTunes library on my computer. When I connect my iPod touch to my PC, however, I cannot find any files in my iPod except for pictures. How can I find the music files so I can add them to my iTunes?

    You can't do that.
    And before you decide to store any music that you own on a computer at work, talk to your IT department. Many organizations do not permit it for legal reasons. Standard policies are that anything stored on company owned computers is the property of the company. It could not be legally stored on their machines unless you transfer the licenses and all copies, physical and digital, to the company, meaning you no longer own the music. If they were to be audited and could not prove that they own the music, they would be subject to copyright violation penalties. Just use your iPod when you're at the office if you want to listen to music.

  • How can i find the size and contents of playlist created by genius?

    How can i find the size and contents of i-tunes playlist created by genius?

    Have a look at this article written by the CEO of our company (MoviMED):
    http://www.qualitymag.com/articles/91010--d-imaging-enters-the-machine-vision-world?v=preview
    What is the object you are going to be making with the CNC?  Is it a cube? Is it an intricate statue?
    Are you making an object with a CNC, or just mounting a camera to a CNC to image the object?
    www.movimed.com - Custom Imaging Solutions

  • How can I find the location of an i-pod shuffle, nano and touch that i have synced to my account? I have had each one stolen and would be so relieved if i could track there location as I know they are still in the county I live.

    How can I find the location of an i-pod shuffle, nano and touch that i have synced to my account? I have had each one stolen and would be so relieved if i could track there location as I know they are still in the county I live.
    Also if i cant locate them can i at least remotely delete the libraries, and lock them so they are unusable to the thiefs, and i had a sony laptop worth £2000 stolen which I had used my apple account for a year is there anyway i can track that or retrieve the contents and delete them?
    Please if anybody knows reply or contact me!!!! =-)
    many thanks

    You or Apple can do nothing to prevent use of the devices.
    For the iPod touch if you turned on the FindMyiPod feature and wifi is on and connected yu may be ablt ot locate it and wipe it by going to iCloud, signing in and going to FindMyiPhone. However, if the iPOd is rectored that feature is deleted.
    Report to police and change the passwords for all accounts used on the iPod.

  • How can I find the specific channel name and modify channel name in automatically in VBS?

    How can I find the specific channel name and modify channel name in automatically in VBS? (DIAdem 9.1)
    I would like to change channel name = "speed01" ... "speed10"  to  channel name = "velocity01"..."velocity10.
    martino

    Hello Martino,
    this script will help:
    Option Explicit
    Dim i
    Dim n
    For i=1 To 10
    If i < 10 then
    n = CNo("speed0" & i)
    Else
    n = CNo("speed" & i)
    End If
    If n > 0 Then
    If i < 10 then
    ChnName(n) = "velocitiy0" & i
    Else
    ChnName(n) = "velocitiy" & i
    End If
    End If
    Next
    Matthias
    Matthias Alleweldt
    Project Engineer / Projektingenieur
    Twigeater?  

  • How can I find the location of an i-pod shuffle, nano and touch

    <body><p>How can I find the location of an i-pod shuffle, nano and touch that i have synced to my account? I have had each one stolen and would be so relieved if i could track there location as I know they are still in the county I live.</p>
    <p>Also if i cant locate them can i at least remotely delete the libraries, and lock them so they are unusable to the thiefs, and i had a sony laptop worth &pound;2000 stolen which I had used my apple account for a year is there anyway i can track that or retrieve the contents and delete them?</p>
    <p>???</p>
    <p> </p>
    <p>Please if anybody knows reply or contact me!!!! =-)</p>
    <p> </p>
    <p>many thanks</p></body>

    There is no way to track a missing or stolen iPod Nano or Shuffle.  You can track the iPod Touch if you had previously enabled the FindmyiPhone feature before it was lost. However, this feature also depends on the iPod to be connected to a working Wi-Fi network and not have already been restored by the thief.
    Apple can do nothing to help. Sorry.
    Reporting a lost or stolen Apple product
    B-rock

  • HT1725 I have paid for a movie rental, when trying to download but wifi got interrupted , therefore I can't see the movie in the download section , it's disappear and I have paid for it , how can I find the movie and continue the download ?

    I have paid for a movie rental, when trying to download but wifi got interrupted , therefore I can't see the movie in the download section , it's disappear and I have paid for it , how can I find the movie and continue the download ?

    In the "Store" menu, click "Check for Available Downloads"

  • My Ipad and macbookair have been stolen. How can I find the imei code of both devices considering that were all registered on icloud?

    My Ipad and macbookair have been stolen. How can I find the imei code of both devices considering that were all registered on icloud?

    Unless you have configured iCloud on the MacBook Air and made sure that Find My Mac was turned on, you can't track that.  And even if you did do that, that is not a foolproof method of tracking, as it relies on the thief connecting to the internet using the guest account on the machine and not getting in to your account and disabling Find My Mac or wiping the hard drive and installing a clean system.
    As for the iPad, similar rules apply there.  If it is a wifi-only iPad, it cannot be tracked any other way.  If it has 3G, your wireless carrier may be able to help you track it.

Maybe you are looking for

  • Dunning Document Set Up Question

    I hope someone with a better understanding of Dunning (which will be every oout there !), can help me with my question  What is the difference between the "F150_DUNN_01" and "F150_DUNN_02" SAPscripts? In the SAP documentation it says "F150_DUNN_02" i

  • Broadcasting - EMail Bursting

    Hi, Can any one please answer below questions on email bursting. Lets say our Vendor master data consists of 50000 vendors,If i opted to broadcast a report based on email bursting,Does it shoots email to all the 50,000 vendors or only vendors for whi

  • ICSS B2B

    Hi Experts! Our business requirement is as follows: A Service Provider for a company should be able to view and change status of the Complaints and General Activities registered in his geographical area and later can assign a Service Technician to th

  • CRLF or BR

    Little problem using JSP technology and editing long text with CR/LF inside. I've got a form containing a TEXTAREA in witch you can enter text and, of course, CR/LF. I can submit the form and record the text correctly in the database. If I call the c

  • Need Help Scanning & Elements 10

    I am scanning family photos on Epson 750 Pro Scanner, bring the images into PhotoShop Elements 10.  I usually scan two 4'x6" photos, ask Elenets to divide the scanned images, and then edit and renmae each of the images.  Sometimes, this works, and ot