Consulting

Results 1 to 2 of 2

Thread: Feeding data set into a sql stored proc using VBA

  1. #1

    Feeding data set into a sql stored proc using VBA

    Good morning

    I have a string in a worksheet that I am looking to feed into a sql table directly using vba; i.e. not wanting to create a csv file and then batch uploading. The data set has 15 columns and will be of varying number of rows. Does anybody have any code suggestions for being able to do this, please?

    Thx

    LH

  2. #2
    VBAX Master stanl's Avatar
    Joined
    Jan 2005
    Posts
    1,141
    Location
    You could make up your mind. Do you want to stream to a stored proc as the title suggests or to a table, as the text suggests?

    If you are sure there will be no data validation issues, I see nothing wrong with just issuing a BULK INSERT. .02 Stan

Posting Permissions

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