Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. time out expired

time out expired

Scheduled Pinned Locked Moved Database
helpdatabase
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    brettokumar
    wrote on last edited by
    #1

    hi i ma using a query like to select country code using between query cause ip if im using this query i will fetch value sometime but i will display time out expired error some time. to over come this problem what can i to do can share your ideas with me my query is SELECT countryShort FROM IPCITYLATLONGISP WHERE '3678433939' between ipFrom and ipTo

    with regards, bretto

    B P A 3 Replies Last reply
    0
    • B brettokumar

      hi i ma using a query like to select country code using between query cause ip if im using this query i will fetch value sometime but i will display time out expired error some time. to over come this problem what can i to do can share your ideas with me my query is SELECT countryShort FROM IPCITYLATLONGISP WHERE '3678433939' between ipFrom and ipTo

      with regards, bretto

      B Offline
      B Offline
      Blue_Boy
      wrote on last edited by
      #2

      Try to optimize your query.


      I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.

      1 Reply Last reply
      0
      • B brettokumar

        hi i ma using a query like to select country code using between query cause ip if im using this query i will fetch value sometime but i will display time out expired error some time. to over come this problem what can i to do can share your ideas with me my query is SELECT countryShort FROM IPCITYLATLONGISP WHERE '3678433939' between ipFrom and ipTo

        with regards, bretto

        P Offline
        P Offline
        Paddy Boyd
        wrote on last edited by
        #3

        Have you considered putting an index on this column (you need to consider that while it may speed up your query, it might also slow down your inserts).

        1 Reply Last reply
        0
        • B brettokumar

          hi i ma using a query like to select country code using between query cause ip if im using this query i will fetch value sometime but i will display time out expired error some time. to over come this problem what can i to do can share your ideas with me my query is SELECT countryShort FROM IPCITYLATLONGISP WHERE '3678433939' between ipFrom and ipTo

          with regards, bretto

          A Offline
          A Offline
          Ashfield
          wrote on last edited by
          #4

          Besides optimizing your query (perhaps by indexing the column) you can increase the query timeout in your code.

          Bob Ashfield Consultants Ltd

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups