Consulting

Results 1 to 6 of 6

Thread: loop through range upload to database

  1. #1
    VBAX Newbie
    Joined
    Sep 2010
    Posts
    5
    Location

    loop through range upload to database

    How can I loop through a range in Excel and upload the data to the database?

  2. #2
    VBAX Mentor
    Joined
    Oct 2007
    Posts
    372
    Location
    what database? If you're using access you can just link the data via access.

  3. #3
    VBAX Newbie
    Joined
    Sep 2010
    Posts
    5
    Location
    Sorry for the lack of details. It's Teradata. I have the connection that I need, I just have a horrible time with loops.

    Thanks so much!!

  4. #4
    VBAX Mentor
    Joined
    Oct 2007
    Posts
    372
    Location
    Have you tried using onboard utilities such as this top google match http://forums.teradata.com/forum/ana...el-to-teradata ?

  5. #5
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    Some ADO methods could be adapted most likely. The main part is to get the connection string. http://connectionstrings.com/teradata

  6. #6
    VBAX Newbie Jam's Avatar
    Joined
    Jul 2007
    Location
    Suburbs of Paris (France)
    Posts
    3
    Location
    You didn't precise if you're inserting or updating data. But, I just advise you to move the whole range to an array and loop thru it rather than looping the range. It is much much faster.
    On the database side, you may have to look to index.
    HTH
    "We can always learn from what we don't know, not from what we think to know."

Posting Permissions

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