Faster SQL connection

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raids51
    New Member
    • Nov 2007
    • 59

    Faster SQL connection

    is there any way that a vb program can connect to a sql database faster. example: instead of filling a datasource just search right from the server?
    I need to do this for my application because i dont want
    it to take 5 minutes to startup because its loading the data
    Any help would be great!
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    I'm not sure about working directly from databases but have you considered retrieving less data from the database at a given time.?

    Eg: retrieve the first 100 records instead of all 32000...then retrieve the next 100 when the are required?

    Comment

    • raids51
      New Member
      • Nov 2007
      • 59

      #3
      my quick solution

      i wanted to load it all at the same time, but i found a easy way out. kinda cheap but instead of the client loading all that data from the server every time it starts, whenever it wants to retrieve information from the database it sends a tcp message to a program on the server which gets the information based on the message, and sends the data back to the client. therefore the client doesnt have to load any data from the DB instead the server loads it all and handles the searches. its not the best way but the loading is faster.

      Comment

      • MrMancunian
        Recognized Expert Contributor
        • Jul 2008
        • 569

        #4
        Why don't you just query your database for the right information, instead of either downloading all data into a dataset or using another progam (and thus another errorprone solution)?

        Steven

        Comment

        Working...