Select with numeric conditions in the where part

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Re: Select with numeric conditions in the where part

    Try this:
    [url]http://www.winnetmag.com/Articles/Index.cfm?ArticleID=21365[/url]

    --
    Gregory A. Beamer
    MVP; MCP: +I, SE, SD, DBA
    Author: ADO.NET and XML: ASP.NET on the Edge

    ************************************************** **************************
    ****
    Think Outside the Box!
    ************************************************** **************************
    ****
    "Luigi Nizzi" <Luigi.nizzi@np.ge.com> wrote in message
    news:078001c349f3$425dccf0$a101280a@phx.gbl...
    > System:
    > Windows: 2000 SP3
    > IIS5.0
    >
    > We have a performance issue when we run a simple query
    > with numeric field in the where part:
    >
    >
    >
    > We do not have the same problem in NT server (IIS 4.0) or
    > using personal Web server (Windows 2000)
    > :
    >
    > The query we run several times is:
    > SELECT * FROM [fcotepos] WHERE Anno=0 AND Mese=0 AND
    > Serial=0
    >
    > Performance On the Web server:
    > Time Query
    > [0.08] ### SELECT * FROM [fcotepos] WHERE Anno=0 AND
    > Mese=0 AND Serial=0
    > [0.09] ### SELECT * FROM [fcotepos] WHERE Anno=0 AND
    > Mese=0 AND Serial=0
    > .
    > .
    > CPU Utlization only 50% (why it does not use all the CPU
    > available ? The other CPU remains idle)
    >
    > Performance On the Personal Web server:
    > Time Query
    > [0.01] ### SELECT * FROM [fcotepos] WHERE Anno=0 AND
    > Mese=0 AND Serial=0
    > [0.01] ### SELECT * FROM [fcotepos] WHERE Anno=0 AND
    > Mese=0 AND Serial=0
    > .
    > .
    > CPU Utlization 100%
    >
    > May you help us or give us indications ?
    > Thanks
    > Luigi
    >

    Cowboy \(Gregory A. Beamer\) Guest

  2. Similar Questions and Discussions

    1. numeric part of a string
      Can anyone tell me how can I get the numeric part of a string . for example I'm using this..Select substring('walnut 2224...
    2. WebControl, to select part of a web-image.
      Hi, I'm looking for an ASP.NET web-control in wich I can show a generated image to user, the user should then be able to select part of the...
    3. Select from function for part of column results
      Hi Oisin On 03/02/05, Oisin Glynn (me@oisinglynn.com) wrote: This works great for a function returning a single column. I'm not sure how to do...
    4. if and conditions
      i dont know script but this is what im trying to do and i wrote it out maybe someone can help me with this on (press) if(anymovieclip is open )...
    5. SQL SELECT Based on *PART* a text Field?
      Hello, I'm trying to figure out some SQL here and am wondering this: Is it possible to select data based on a sub-string of a text field? ...
  3. #2

    Default Re: Select with numeric conditions in the where part

    > CPU Utlization only 50% (why it does not use all the CPU
    > available ? The other CPU remains idle)
    >
    > Performance On the Personal Web server:
    > Time Query
    > [0.01] ### SELECT * FROM [fcotepos] WHERE Anno=0 AND
    > Mese=0 AND Serial=0
    > [0.01] ### SELECT * FROM [fcotepos] WHERE Anno=0 AND
    > Mese=0 AND Serial=0
    > .
    > .
    > CPU Utlization 100%
    (1) are the same indexes employed in both servers?

    (2) does one of the servers only have 1 cpu allocated to SQL Server?


    Aaron Bertrand - MVP Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139