Form to upload data into SQL Server

mmmarks

Active Member
Joined
Jun 4, 2011
Messages
432
Office Version
  1. 2013
Dear Friends,

Could anyone do me a favor in creating a form which can take data from a sheet and upload into SQL Server (My SQL Server is not in local machine , Its a remote machine)
I will keep Database credentials within VBA code only. Thank you in advance. below is sample of a form

Server192.xx.xx.xx
DatabaseTEST
Tabledatadump
Copy FromSheet1
AppendYesFull Loadx
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
What does Sheet1 look like? If the SQL Columns names are in some row, then I would write code to walk Sheet1 and write the data directly to SQL Server. I do something similar, I have all/select records/columns showing for a table and allow the user to make changes to multiple columns and multiple records and send all the updates to SQL Server via a single button with VBA code that creates multiple SQL Update Query(s).
 
Upvote 0

Forum statistics

Threads
1,215,206
Messages
6,123,638
Members
449,109
Latest member
Sebas8956

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top