What would be the optimal index creation for this horribly written sql in a third party app that I cannot change?

SQL:
       SELECT *      FROM ORDERS WHERE ORDERNO = {STR} AND ITEMNO = {##} AND STEP = {##}

That's almost certainly the wrong question.  You don't want the index(es) that will optimize that single query.  You want the index(es) that will optimize your system as a whole.
The absolute best choice for that query would be a clustered index on ORDERNO, ITEMNO, STEP.  But each table can only have one clustered index so you would have to drop any clustered index you currently have and then create the new one.  But creating
or dropping a clustered index can be time consuming on a large table.
So in the absence of any other information, I would recommend trying a nonclustered index on ORDERNO, ITEMNO, STEP.  That will be faster to do and faster to drop if you decide it's not helping.
Tom

Similar Messages

  • Had a windows computer with my element 7.  Now just bought a Mac OSX   version 10.9.2 what would be the best photoshop elements for this machine.  I did download elements 12 from Apple store but kept getting incompatible message when trying to open a phot

    I thought elements were simple but maybe it is just me.  Having problems moving photos from iphoto to elements

    Duplicate post; see:
    had a windows computer with my element 7.  Now just bought a Mac OSX   version 10.9.2 what would be the best photoshop elements for this machine.  I did download elements 12 from Apple store but kept getting incompatible message when trying to open a phot

  • How do I get an SVG file to the same color profile as my illustrator file (U.S. Web Coated (SWOP) v2 and what would be the correct color profile for printing on a shirt?

    How do I get an SVG file to the same color profile as my illustrator file (U.S. Web Coated (SWOP) v2 and what would be the correct color profile for printing on a shirt?
    Thank you.

    dadanas wrote:
    Hi Simcah, I have a similar problem. Have you found out any solution?
    thanks, dan
    You need to ask the printing service provider. Dealing with color totally depends on the printing process involved and of course the machines used.

  • Where can i complaint about a Developer imposture for a third party app that i have already purchased?

    Where can i complaint about a Developer imposture for a third party app that i have already purchased?

    I'm not sure what you mean by a "developer imposture", but if you are having a problem with an app that the app's developer cannot or will not assist with, go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store.
    Regards.

  • I have the newest Ipod touch. It will not let me delete third party apps. When i hold down the app I want to delete it starts wiggling but there is no X. How do I delete the apps?

    I have the newest Ipod touch. It will not let me delete third party apps. When I hold down the app I want to delete it wiggles but there is no X. How do i delete the app still?

    I'm having exact same issue!  Just upgraded my son's ipod touch to iOS5 and now can't seem to delete any apps from the iPod springboard.  Please help!

  • What would be the easiest way to do this?

    Alright, I'm getting an iPod Touch for Christmas. I started preparing my iTunes Library already, but I ran into a slight problem. See, all of my music is on my old computer, which I still use, but the USB port is broke. So I am going to need to sync my iPod on my new computer.
    So my question is: What would be the easiest way to transfer my whole Library to my new Computer so that I could sync?

    This article in the Apple Knowledge Base outlines the main options for transferring files from one computer to another.
    Decide which one is best for your circumstances and post back if you need any clarification.

  • What would be the proper summary address for these?

    Hello support community,
    I'm trying to write a summary network address for the ip address in red below, but they need to be separate from the ones in black, is this a proper summary route for these networks in red? 10.20.0.0/10 ?
    IP Address 
    Binary 1st octet
    Binary 2st octet
    Binary 3rd octet
    Binary 4th octet 
    10.0.0.0
    00001010
    00000000
    00000000
    00000000
    10.2.0.0
    00001010
    00000010
    00000000
    00000000
    10.3.0.0
    00001010
    00000011
    00000000
    00000000
    10.20.0.0
    00001010
    00010100
    00000000
    00000000
    10.30.0.0
    00001010
    00011110
    00000000
    00000000
    10.31.0.0
    00001010
    00011111
    00000000
    00000000
    10.32.0.0
    00001010
    00100000
    00000000
    00000000
    10.40.0.0
    00001010
    00101000
    00000000
    00000000
    10.41.0.0
    00001010
    00101001
    00000000
    00000000
    10.44.0.0
    00001010
    00101100
    00000000
    00000000
    10.45.0.0
    00001010
    00101101
    00000000
    00000000
    10.48.0.0
    00001010
    00110000
    00000000
    00000000
    10.50.0.0
    00001010
    00110010
    00000000
    00000000
    10.51.0.0
    00001010
    00110011
    00000000
    00000000
    10.52.0.0
    00001010
    00110100
    00000000
    00000000
    10.53.0.0
    00001010
    00110101
    00000000
    00000000
    10.55.0.0
    00001010
    00110111
    00000000
    00000000
    10.56.0.0
    00001010
    00111000
    00000000
    00000000
    10.61.0.0
    00001010
    00111101
    00000000
    00000000
    10.63.0.0
    00001010
    00111111
    00000000
    00000000
    10.70.0.0
    00001010
    01000110
    00000000
    00000000
    10.71.0.0
    00001010
    01000111
    00000000
    00000000
    10.72.0.0
    00001010
    01001000
    00000000
    00000000
    10.73.0.0
    00001010
    01001001
    00000000
    00000000
    10.74.0.0
    00001010
    01001010
    00000000
    00000000
    10.75.0.0
    00001010
    01001011
    00000000
    00000000
    10.76.0.0
    00001010
    01001100
    00000000
    00000000
    10.77.0.0
    00001010
    01001101
    00000000
    00000000
    10.78.0.0
    00001010
    01001110
    00000000
    00000000
    10.79.0.0
    00001010
    01001111
    00000000
    00000000

    Hi,
    I think you need to split aggregation in to below three subnets. 
    10.16.0.0/12
    10.32.0.0/11
    10.64.0.0/10
    10.20.0.0/10 is not a valid prefix. 
    Please don't forget to rate this post if it has been helpful
    -akash

  • I've been using older printers (including an imagesetter) connected to10.5.8  With a new 10.6 machine I'm looking to still use the printers. I can use the olderG5 as a sever if need be. What would be the best way to do this?   ine

    I've replaced my 10.5.8 with another machine 10.6.8 which as we know doesn't support Apple Talk which has been used to print to 2 bulletproof older printers and an imagesetter. I wan't to keep using the printers and can use the 10.5.8 as a server. What is the best way to do this?

    Hi
    You could do this a number of ways. Using the LPD Daemon might work best for your location?
    First: assign the machine you're going to use as the 10.5.8 'server' a fixed IP address.
    Second: add desired printers to that machine using the usual methods.
    Once added share them using the Print Sharing option in the Sharing Preferences Pane. On the 10.6.8 machine add the printer using the IP address of the 10.5.8 'server'.
    System Preferences > Print & Fax and click the '+' icon. Click on the IP Icon and key in the IP address you previously assigned. Leave the Queue field alone and select the relevant PPD from the Print Using field (see below). You'll have to search for these yourself.
    You don't have to 'install' the PPDs on the 10.6.8 machine as such. Simply copying them over from their location on the 10.5.8 machine (use a memory stick to do the transfer) to the same location on the 10.6.8 machine will be enough.
    There should be no need to restart.
    HTH?
    Tony

  • Please I would need the  correct Entity Diagram for this Two questions.

    This is to draw an Entity Relationship Modelling Diagram that will show inside dot for the "Must Need" end and outside dot on the "not must" end.
    You also need to put 1s and Ms relationship where needed.
    Question (1)
    The All Day Driving School
    The All Day Driving School has a number of instructors. Each instructor is assigned a car for their own use only.
    The school also has a spare car which is not assigned to a particular instructor.
    The driving school takes on pupils who are each allocated to an instructor. The pupil then books lessons with the instructor.
    New instructors have a short induction period before any pupils are allocated to them.
    Suggest suitable attributes for each table (assume that these will be discussed in detail with the user when you next meet with them).
    Extention to the scenario: Sometimes the pupil´s allocated instructor is not available when he/she requires a lesson, and a different instructor cover that lesson.
    How would you amend your diagram and tables so that it is still possible to identify the allocated instructor, but also to record who was the instructor for each lesson?.
    MY Answer:
    Attributes:
    Institution(InstitutionID, Name, Address, Telephone, Location)
    Instructor(InstructorID, Fname, Lname, Address, DOB, Gender)
    Car(CarID, RegistrationNo, Make, Model, Colour)
    Pupil(PupilID, IntructorID, LessonID)
    Lesson(LessonID, InstructorID, CarID, StartDate, EndDate, Cost, Details)
    Question (2)
    This is to draw an Entity Relationship Modelling Diagram that will show inside dot for the "Must Need" end and outside dot on the "not must" end.
    You also need to put 1s and Ms relationship where needed.
    London Allotments
    London City Council’s allotment department is responsible for the city’s allotments. Allotments are small areas of land that can be rented by council residents to grow vegetables and fruits. These allotments are rented by individuals. A site may have a paid manager who looks after the site and carries out any maintenance (such as repairing gates and fences): in this case, basic details of the manager are stored. As the site are spread throughout the city, each manager looks after exactly one site. A gardener rents a numbered allotment by paying the rented fee. Some gardeners rent several allotments but an allotment can only be rented by one named person. The allotments are in great demand and are never left vacant. Gardener’s details are recorded as soon as they are accepted for the waiting list,
    together with the date they were added to the list.
    Suggest suitable attributes for each table(assume that these will be discussed in details with the users when you next meet with them)
    Extension to the scenario: This scenario encourages you to draw an ERD that records only the current manager of each site, not previous managers. Similarly you
    were only expected to record the current gardener for each allotment. How would your diagram change if the council wanted to keep records of all the managers
    and gardners over several years? Does the basic rule for allocating foreign keys work for the new diagram? We are going to need more techniques, aren´t we?
    My Answer:
    Attributes:
    Council(CouncilID, Address, Telephone, Location)
    Manager(ManagerID, Fname, Lname, Address, DOB, Gender)
    Site(SiteID, RegistrationNo, Size, Location)
    Gardener(GardenerID, , Lname, Address, DOB, Gender)
    Allotment(AllotmentID, RentalFee, NameOnRent, AllocatedDate, ExpiryDate, RentDuration, AllocationSize, WaitingList)
    Individual(IndividualID, Fname, Lname, Address, DOB, Gender)

    This is to draw an Entity Relationship Modelling Diagram
    NOTHING involving Oracle exists in problem or solution.
    Problem can apply to any RDBMS.
    BTW, we don't do homework assignments.

  • With 2008 - What would be the 'best practice' approach for giving a principal access to system views

    I want to setup a job that runs a few select statements from several system management views such as those listed below.  Its basically going to gather various metrics about the server, a few different databases and jobs.
    msdb.dbo.sysjobs
    msdb.dbo.sysjobhistory
    sys.dm_db_missing_index_groups
    sys.dm_db_missing_index_group_stats
    sys.dm_db_missing_index_details
    sys.databases
    sys.dm_exec_query_stats
    sys.dm_exec_sql_text
    sys.dm_exec_query_plan
    dbo.sysfiles
    sys.indexes
    sys.objects
    So, there a number of instance-level permissions that are needed, mainly VIEW SERVER STATE
    https://msdn.microsoft.com/en-us/library/ms186717.aspx
    Granting these permissions to a single login seems like introducing a maintenance headache for later.  What about a server role?
    Correct me if Im wrong, but this is a new feature of 2012 and above, the ability to create user-defined server roles.
    Prior to version 2012, I will just have to settle for granting these instance-level permissions to individual logins.  There wont be many logins that need this kind of permissions, but id rather assign them at a role level then add logins to that role.
     Then again, there is little point in creating a seperate role if there is only 1...and maybe 2 logins that might need this role?
    New for 2012
    http://www.mssqltips.com/sqlservertip/2699/sql-server-user-defined-server-roles/

    Just as any Active Directory Administrator will tell you you should indeed stick to the rule - "user in role- permissions to role" - in AD terms "A-G/DL-P. And since this is very much possible since SQL Server 2012 why not just do that. You
    lose nothing if you don't ever change that one single user. In the end you would only expect roles to have permissions and save some time when searching for permission problems.
    i.e.
    USE [master]
    GO
    CREATE SERVER ROLE [role_ServerMonitorUsers]
    GO
    GRANT VIEW SERVER STATE TO [role_ServerMonitorUsers]
    GO
    ALTER SERVER ROLE [role_ServerMonitorUsers]
    ADD MEMBER [Bob]
    GO
    In security standardization is just as much key as in administration in general. So even if it does not really matter, it may matter in the long run. :)
    Andreas Wolter (Blog |
    Twitter)
    MCSM: Microsoft Certified Solutions Master Data Platform, MCM, MVP
    www.SarpedonQualityLab.com |
    www.SQL-Server-Master-Class.com

  • What would be the best tablet/notebook for Photoshop CS4 or Photoshop Elements 10

    When we travel, I love to work with my pictures to create hard bound book pages as we go.  I have wanted a tablet/notebook that I can use a stylis pen to mark my selections but have no idea where to start.  I need a pretty powerful machine because some of my projects get rather large.   Size isn't so much a problem unless someone recommends the new Dell that is a bit too small.  That one is just too small and my eyesight isn't what it used to be.   Any suggestions would be very welcome.  We already have a laptop but I really want something that I can draw on the tablet to make my many layer selections.    I'm not all an expert when it comes to hardware.  I use both Elements 10 and CS4 on my Windows 7 64 bit machine and use them both but would probably only load Elements 10 on any new device I buy.  It's just easier and for what I'm doing, it's the best solution.
    Karen

    I had a Wacom tablet that I used with my PC and really didn't like it.  I would much rather had an image on the tablet that I could draw around........and even though one of those exists, it's way out of my price range.   What I'm looking for is a larger version of the Dell Inspiron Duo (1090) 10.1" display 1366/768 touch screen convertible tablet.    It's easy to go from regular mode to touch screen mode by flipping the screen.   This one however has a screen that's just too small for me to use and the keyboard is way to tiny for my big hands.  I know I can call Dell and find out what they recommend but I had thought that some photoshop users had already encountered this and might just have an answer.
    As for the iPad, I have one of those and it's great for apps but not at all for playing around with photoshop or any of my other graphic packages.  I use it to grab my mail at wi-fi sites while we're on cruises where it doesn't cost an arm and leg for using the connection.   The price of a cup of coffee usually gets us enough time to download all of our mail and then head out touring.
    Thanks for taking the time to respond.
    Karen

  • What would be the veritool.zip replacement for LabVIEW 8.x. It isn't supported beyond 7

    I have been told that veritool.zip isn't supported for LabVIEW 8.x.  It had worked on 7 but is no longer supported.  Any suggestions as to what to use for testing our LabVIEW code?  We have upgraded to 8.20.  Hoping someone out there can help me.

    You may be able to update VeriTool by replacing the error handling VI's.  The VI lib is rather small and worth taking a look at if you're in dire need.
    TheDillo

  • I'm currently running NMS4.15p7 and it is quite stable. What would be the advantages to go for iMS 5.1?

     

    You'd want to review the IMS Release Notes and documentation for a complete picture of what's different in IMS. There are a number of things that jump out though.
    Aside from NMS nearing the end of its life-cycle, IMS is more stable. It's built on a foundation of both Netscape Messaging Server and SIMS.
    It includes server-side rules that can be selected by a user to apply to their mailbox or by the administrator to apply server-wide, using the very flexible SIEVE language.
    You can also easily integrate other software such as a virus scanner by using the conversion channel. You can filter MIME-Types, scan message bodies, and so on.
    In 5.2, you'll be able to use the Webmail Multiplexor similar to the POP and IMAP MMP in 4x. Domain hosting, user provisioning, security and message store management are far better in IMS.
    IMS is also the go-to product if you're looking for a Unified Messaging solution or expecting to scale-up your current deployment.
    There are dozens of other benifits to IMS, but there are too many to list. The best way to decide if it suits you is to read through the Admin Guide and possibly the Provisioning Guide and then install it in a test environment yourself to really feel it out.
    The learning curve for IMS is a bit steeper as it is a more complex product and there are more components to interact with and configure. You will have to thoroughly read the documentation available and do a trial installation and deployment before using in the real-world. But once you get over that bump, it's a very powerful server.

  • What would be the best network setup for me?

    I am planning a network system for my medical practise. The network will comprise a Macbook Pro(myself) , an Imac(receptionist) and a Macbook for occassional admin use.
    I need some advice as to the best way to store the shared data. I will be using Filemaker Pro and will be storing patient appointments, demographics as well as clinical info, visit notes and investigations.
    I am considering 3 possible setups
    Have shared database on the Imac, backed up by a 500 gigabyte hard disk, or possibly a time capsule, using Time machine.
    Have an ethernet hard disk for storage, but then I probably would need to have a different backup system.
    Use a mac mini as a file server.
    Or use an altogether different setup.
    I would appreciate suggestions.
    Thank you
    ajdk

    Hi ajdk-
    Then it comes down to your morals and how carefully you want or need to protect patient confidentiality. Your basic network concept should work.
    As a start, storing any patient data with regular business data and emails is asking for a security breach.
    Make sure to back up your back ups and store said backup securely in a media-rated fire proof vault.
    These documents may help:
    Creating a small Ethernet network
    AirPort Base Station and Network Setup Guide (Mac OS X 10.4 or earlier)
    Luck-
    -DP

  • Any guidance on what would be the best way to do this?

    Hi there,
    I would like to be able to play an .flv video, and then below it have small bullets with links on where users could then jump to different sections of the continuous video.
    Can someone please provide perhaps a quick link or tutorial where I can see how this is done?
    Thanks
    Mike

    I think that jw player can do this for acne

Maybe you are looking for