Which Event Classes i should use for finding good indexs and statistics for queries in SP.

Dear all,
I am trying to use pro filer to create a trace,so that it can be used as workload in
"Database Engine Tuning Advisor" for optimization of one stored procedure.
Please tel me about the Event classes which i  should use in trace.
The stored proc contains three insert queries which insert data into a table variable,
Finally a select query is used on same table variable with one union of the same table variable, to generate a sequence for records based on certain condition of few columns.
There are three cases where i am using the above structure of the SP, so there are three SPS out of three , i will chose one based on their performance.
1) There is only one table with three inserts which gets  into a table variable with a final sequence creation block.
2) There are 15 tables with 45 inserts , which gets into a tabel variable with a final
sequence creation block.
3)
There are 3 tables with 9 inserts , which gets into a table variable with a final
sequence creation block.
In all the above case number of record will be around 5 lacks.
Purpose is optimization of queries in SP
like which Event Classes i should use for finding good indexs and statistics for queries in SP.
yours sincerely

"Database Engine Tuning Advisor" for optimization of one stored procedure.
Please tel me about the Event classes which i  should use in trace.
You can use the "Tuning" template to capture the workload to a trace file that can be used by the DETA.  See
http://technet.microsoft.com/en-us/library/ms190957(v=sql.105).aspx
If you are capturing the workload of a production server, I suggest you not do that directly from Profiler as that can impact server performance.  Instead, start/stop the Profiler Tuning template against a test server and then script the trace
definition (File-->Export-->Script Trace Definition).  You can then customize the script (e.g. file name) and run the script against the prod server to capture the workload to the specified file.  Stop and remove the trace after the workload
is captured with sp_trace_setstatus:
DECLARE @TraceID int = <trace id returned by the trace create script>
EXEC sp_trace_setstatus @TraceID, 0; --stop trace
EXEC sp_trace_setstatus @TraceID, 2; --remove trace definition
Dan Guzman, SQL Server MVP, http://www.dbdelta.com

Similar Messages

  • IPhone: Where to find good Documentation and Samples for Auto-Rotate?

    So I'm starting to get into the auto rotation features for my iPhone apps. I've spent a couple hours looking for some apple documentation and searching online, but I'm not finding any "definitive" guide to discuss the process. Any recommendations would be great!
    Specifically, I'm trying to learn about the following:
    - I have already implemented auto-rotation, but how do I setup my view so when rotated, it adjust the UI to take advantage of landscape mode. (i.e. I want to add extra features, and re-position some things)
    - I also would like to the option within a couple views, that when rotated, goes to an entirely new view.
    Thanks in advance!

    I generally find that vector drawing programs are better for drawing toolbar icons and the like, as vector drawings are easier to tweak and adjust later. I've had great success with VectorDesigner in my own apps; it has a shallow learning curve and a solid basic feature set, although it can be quirky at times. (It also doesn't play all that well with certain development tools: don't try to add VectorDesigner files to Xcode projects, and make sure you zip them before you add them to a Subversion or CVS repository. VectorDesigner files are packages--like application bundles--and those tools don't play well with packages.)
    If you want to go a little higher end, Illustrator is the Photoshop of vector drawing, but like Photoshop you'll probably find it very difficult to start out with.
    You'll also need a raster graphics editor to tweak exported images. I use Pixelmator for this, but Photoshop will work just as well.

  • I have an apple id which I have been happily using to purchase from iTunes and it appears on iPad and iPhone. Now I have done something wrong in iCloud and my mobile me Id comes up on iPhone and iPad so I can no longer purchase. What should I do.

    I have an apple id which I have been happily using to purchase from iTunes and it appears magically on iPad and iPhone, MacBook and partner's iPod touch. Now I have done something wrong in iCloud and my mobile me Id comes up on iPhone and iPad so I can no longer purchase using this and i can't find a way to reset  What should I do? I want to be able to buy apps from iPhone and iPad from this same account and  still synch with my mac book and share with my partner's iPod touch.
    Any suggestions?

    We are users, not Apple. We cannot trace your phone, and neither can Apple.
    Please change every password you have. Posting your email addresses and Apple IDs on a public forum is insane. Hopefully a Mod will edit them out for you.

  • Anyone know which render format I should use, my film will be used on a video wall (12 screens) and I need super quality. My footage format is 1080p HD resolution 1920x1080. I will be running the project from a mac with a direct line to video wall. Thanks

    Anyone know which render format I should use, my film will be used on a video wall (12 screens) and I need super quality. My footage format is 1080p HD resolution 1920x1080. I will be running the project from a mac with a direct line to video wall. Thanks in advance.

    I do some VJ-type work, involving playback of QuickTime files from the computer to projections, and I get good results using ProRes 422. That's convenient, because ProRes 422 is such a great editing codec, too.
    Traditionally, VJs use PhotoJPEG codec, which also works well, but it's a bad editing codec. So you would have to export an edited master, then convert.
    If you want it to look as good as possible, definitely schedule some time to test the footage on the wall. You may want to change the color correction of your footage to match the projectors. And if you feed the video wall some flat gray, you can see if any of the projectors need to be  adjusted.
    I'm not sure what application you're using for playback, but QuickTime Player 7 works well. It has an option to play fullscreen on an external monitor (View > Present Movie…).

  • Which Event Listener interface is used to handle the events

    Hi!
    which Event Listener interface is used to handle events that occur when an attribute is added or removed from the Application Servlet context?
    1.Servlet context Listener
    2.HTTP Session Activation Listener
    3.HTTP Session Listener
    4.Servlet Context Attribute Listener
    Thanx

    I guess you can find that out using google.... it would be fast and easy...

  • In which table can I find the name and surname  for a username ?

    Hello,
    I search the table with the master data of users. Specially I search the table where I can find the
    name, surname for a user.
    In which table can I find the name and surname  for a username ?
    Thanx in Advance

    Hello  everybody,
    thank you for the helpful informations.
    thank you very much
    with kind regards
    cetoman

  • I bought iphone 5 in september last year and the whatsapp which I installed was free of cost.The number which I used is the one I was using in my android phone and validity for its expiring in april but for other users its lifetime free.how can I get it ?

    I bought iphone 5 in september last year and the whatsapp which I installed was free of cost.The number which I used is the one I was using in my android phone and validity for its expiring in april but for other iphone users its lifetime free.how can I get the lifetime free validity?

    kratigupta wrote:
    how can I get the lifetime free validity?
    Huh? AFAIK, such does not exist. Read here:
    http://www.whatsapp.com/faq/general/23014681

  • Use external drive for both Time Machine and storage for Back to My Mac

    Hi all,
    I have been "a Mac" now for over a year and just keep finding cool new things that make me happy I switched. The latest thing is Back to My Mac offered with my Mobile Me account. With a rather convoluted mix of PC/Mac/iOS devices to manage - best $99 I ever spent btw...
    I also have a 1TB Time Capsule that I have been using with Time Machine to back up all four of my Mac computers at home. Needless to say, the 1TB is really struggling to handle the amount of data being backed up and certainly leaves no room for anything else.
    What I wanted to do was to attach a larger external hard drive via a powered hub to the USB port on the Time Capsule and use it for Time Machine backups while using the internal 1TB drive with Back to My Mac so that I can have remote access to all my data from anywhere without having to leave my computer running at home all the time in order for my laptop to "see" it when I'm away. And, yes, the amount of that data far exceeds what any level of Mobile Me subscription can offer! I should also mention that the hard drive is the only USB device connected through the hub to the Time Capsule at the moment. There are no other devices that might be "getting in the way".
    I'm thinking maybe all this is asking too much without the addition of a dedicated file server (Mac Mini, perhaps - not a purchase my budget wants to make).
    I understand that the Time Capsule doesn't support partitions, so I bought a Western Digital 2TB Elements drive, connected it to my Macbook Pro and used Disk Utility to reformat the drive from the incompatible NTFS it shipped in to a single, Mac OS Extended (Journaled) partition. I then made two folders on the drive, one for Time Machine backups and one for Back to My Mac remote storage/access. Great.
    However, when I connected the 2TB drive to my Time Capsule I could not see it at all. Time Capsule was reporting problems in the way of a disk error. From within my Airport Utility, I could see the trouble was the external drive. The utility suggested connecting the drive to a Mac and using it's Disk Utility to troubleshoot.
    I followed through, checking the disk, etc. and ended up reformatted the drive on my Macbook Pro yet again with the same specifications as before but without the folders and reconnected it to the Time Capsule. Same deal. But now, I can't even remotely connect to the Time Capsule at all. I can see the Time Capsule in the shared area of my Macbook's Finder but can not connect. The connection tries and fails even before it gets to asking me for username and password credentials.
    Long story short, first of all, I suppose I would like to know if I'm asking for the impossible?
    Second, if what I want to do *is* possible, what steps do I need to take to make it so?
    Thanks in advance for any advice or suggestions you might have.

    Well, I have now reformatted/partitioned my poor WD Elements 2TB drive about a dozen times as well as restarted my 1TB Time Capsule so many times it's no wonder it's as confused as I am! <G>
    Last night, at your suggestion, William, and in respect for your continued support, I tried creating two 1TB Mac OS Extended (Journaled) partitions on the WD external USB drive, both with GUID partition tables. Both volumes mounted to my laptop's desktop flawlessly and without issue.
    Once the external drive was connected to the Time Capsule, however, it was a crap shoot as to whether or not the drive was recognized at all, reporting a problem with the disk, or, even at one point, mounting one of the two volumes but not both. <sigh>
    I read somewhere on the Internet that you need to restart the Time Capsule for volumes on an external USB drive to be recognized.
    So I tried that. I connected the freshly partitioned/formatted disk to the Time Capsule and restarted it. This succeed in removing the issue of reporting a nameless drive with a capacity of 0MB. It then reported the drive with its correct name but would not recognize whatever volumes in whatever partitions that particular crack at it contained with the exception of the once, as I mentioned above, when only one of two volumes mounted correctly and was listed with the right name and capacity on the Time Capusule's Setup's Disk tab.
    At this point I have given up on my goal to use the external drive with Time Machine to back up my Macs or to hope I will ever be able to see its contents remotely via Back to My Mac. All I would like to do now is simply find a reason why I can't get it successfully connected and playing nice with my Time Capsule in the first place!
    Any further suggestions or advice as to what steps I might take next would be greatly appreciated.
    Thank you all.

  • Finding output type and form for the transaction

    hi all,
       i have a problem finding output type and form for the transaction j1iv .actually i need to find the standard output type and form name for the transaction j1iv. how can we do it.

    Hi Abinash,
         Go through the following steps.
                     1 . Go to the transaction <b>NACE.</b>
                     2. You will be able to see the <b>Application and description</b> tab over  
                         there. Select the Application for which you need the output type.
                     3. After selecting the Application..on the top you can see the tab--
                        output types...click in that..here you will be able to see all the <b>output
                        types for that application.</b>
                    4. Now select a output type ..and on the left side u will be able to see
                       the tab for processing routines...double click on it...
                    5. Here you will be able to see the standard SAP program...the form
                       routine...the form..attached to it..
                Please Reward..if helpful..
    Regards,
    Himanshu.

  • What exact metals are used in the iPod 5 and what for?

    what exact metals are used in the iPod 5 and what for?

    Hey Connor and Josh, The same kind of metals that are found in pretty much all electrics. Aluminum, Gold, Copper, Solder, (I would guess lead free). You will also find plastics and resins, glass and Li-ion, carbon, and silicon. Why do you ask? If your thinking of stripping one down for the metals, it's not worth it, there so little in there it will cost you more to separate the metals than there value by weight.  Cheers.

  • Where can I find good organ and keyboard sounds for Logic Express?

    Where can I find good organ and keyboard sounds for Logic Express? The included sounds seem to be lacking or hard to access.

    Update: Not terribly impressed with the interface for NI's Vintage Organs from the demo download, although the sound demos sure sound good. The letters are tiny and hard to read and the whole thing feels very PC-centric. I guess a guy gets spoiled by the intuitive stuff. I think what I'll try for now is just hooking up my keyboard (Korg N1, circa 1998, about 1700 built in sounds) as a sound module and record the waveforms when I find a sound I like. I did find the EXS24 and several other software synths with some cool organ sounds after digging a little deeper. It would be good if Apple came out with another jam pack just for organs and keys, as the existing jam packs are so easy to use.

  • So, I am travelling to Italy next week.  I am from the US.  VW's "Trip Planner" suggests my iPhone 5s will not work there.  Then, they suggest (via options below) that I can send Txt for $0.050/txt and Receive for $0.05/txt.  How can I confirm which is tr

    So, I am travelling to Italy next week.  I am from the US.  VW's "Trip Planner" suggests my iPhone 5s will not work there.  Then, they suggest (via options below) that I can send Txt for $0.050/txt and Receive for $0.05/txt.  How can I confirm which is true?

    We are here to help! Where are you traveling to? How long will you be there for? What kind of services are you looking to use?
    KarenC_VZW
    Follow us on Twitter @VZWSupport

  • Can i use time capsule for external h drive and also for time machine?

    Can i use time capsule for external h drive and also for time machine?

    Hello, vascocaco.
    If I understand correctly, you're wondering if you can use your Time Capsule's internal hard disk both for Time Machine backups and as an ordinary drive. Is this your question?
    You can, but Time Machine backups may take longer.
    To do it, you should partition your Time Capsule's hard disk to create one volume for the backups and one for other files.

  • How To Find Opening Stock And Value For a Material

    Hi Experts,
    How To Find Opening Stock And Value For a Material  in Given Dates
    Moderator Message: Search.
    Edited by: kishan P on Sep 15, 2010 4:05 PM

    Thanks For Answering.....
    But I Need Any Function Module To Get Opening Stock And Value For Given Material With in Dates.

  • Can I use the same icloud username and password for multiple phones?

    I have 6 iphones and wanted to use Apple Configurator to install the same apps on all 6 phones.  Some of the apps though, also require further installation by email.  Can I use the same iCloud username and password for all 6 phones to download the apps and also to configure email or do I need to create 6 different Apple IDs?

    If different people will be using these phones, you might be better off using the same Apple ID for the iTunes content...apps, music, etc. on each of these devices, but create different ID's for iCloud on each device. You can use one ID for the iTunes/App store, & a different ID for iCloud. That way, messages, notes, contacts, calendars, etc will be kept separate on each device.

Maybe you are looking for