+ Reply to Thread
Results 1 to 4 of 4

Excel inserting records to SQL Help

  1. #1
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    Excel inserting records to SQL Help

    Hey guys

    I hope your well

    I need some help,

    Aim -
    My SQl query produces the following 6 columns (Column B-G) on Sheet1. I want the relevant department to update column E with a unique code, Once the department made the necessary changes , press a button (Which be called “Update”) when the button is pressed, it automatically Inserts the new records to the relevant table in SQL

    My SQl Query which produces (Column B-G) is on a tab called "query"

    The SQl table i need updating is called "[FDMS].[dbo].[Master_RM_Account_List]"

    Sql table [Master_RM_Account_List]
    fields
    ,[MerchantID]
    ,[RMID]

    ParentID (Sheet 1) mapped to MerchantID
    RM_Account (Sheet 1) mapped to RMID

    server=w4pvdb999;
    database=FDMS;
    trusted_connection=true

    I have attached the excel document,

    Looking forward to your response

    Regards
    D
    Attached Files Attached Files
    Last edited by masond3; 10-24-2013 at 05:37 AM.

  2. #2
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    Re: Excel inserting records to SQL Help

    Bump Thread

  3. #3
    Forum Contributor
    Join Date
    06-17-2012
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    150

    Re: Excel inserting records to SQL Help

    I would start by using MS-query to connect to your server and fetch the data into Excel. That would save you a lot of headaches dealing with the code, specially setting the connection string to the server.

    Good luck.

  4. #4
    Registered User
    Join Date
    05-02-2012
    Location
    Exton, PA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Excel inserting records to SQL Help

    @icy...the OP is interested in exporting to SQL not importing. Most of the data tools in excel is for importing. I'm also looking to export excel row data to a sqltable via VBA, without using stored procedures on the SQL side.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] need to be able to update records with button click and delete records sample included
    By unreal11 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-25-2013, 11:45 PM
  2. vlookup match with records and inserting more records
    By perusjosh in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 09-25-2013, 01:48 AM
  3. [SOLVED] find button process slow down on inserting 15000 records .....
    By vijaynadiad in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-19-2013, 02:24 AM
  4. Need help inserting a timestamp on new records
    By oOarthurOo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2010, 10:10 AM
  5. Replies: 0
    Last Post: 07-19-2007, 02:58 AM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1