VBA - working with data videos | Excel VBA Part 56.5 - Basic ADO Commands with SQL Server

Posted by Andrew Gould on 26 June 2019


This video shows you how to use ADO commands to modify data in a SQL Server database. You'll learn how to use the INSERT INTO, UPDATE and DELETE statements with an ADO command object to affect records.

This video has the following accompanying files:

File name Type Description
01 Create Movies Database 2016.sql SQL query
02 Create List Actors Procedure.sql SQL query
ADO Basic Commands.xlsm Excel workbook with macros

Click to download a zipped copy of the above files.

There are no exercises for this video.

Making a  video bigger

You can increase the size of your video to make it fill the screen like this:

View full screen

Play your video (the icons shown won't appear until you do), then click on the full screen icon which appears as shown at its bottom right-hand corner.

 

When you've finished viewing a video in full screen mode, just press the Esc key to return to normal view.

Improving the quality of a video

To improve the quality of a video, first click on the Settings icon:

Settings icon

Make sure you're playing your video so that the icons shown appear, then click on this gear icon at the bottom right-hand corner.

 

Choose to change the video quality:

Video quality

Click on Quality as shown to bring up the submenu.

 

The higher the number you choose, the better will be your video quality (but the slower the connection speed):

Connection speed

Don't choose the HD option unless you have a fast enough connection speed to support it!

 

Is your Wise Owl speaking too slowly (or too quickly)?  You can also use the Settings menu above to change your playback speed.

This page has 1 thread Add post
25 Oct 19 at 02:13

Hi Andy,

Firstly, these video tutorials are second to none! You and your team should be very proud!

What would be the best way to add bulk data from an Excel table via VBA to an SQL table. Would one need to loop over each cell and export to SQL using that method or is there a more effecient way like being able to export the entire table (or say a CSV file) in a more direct way?

Many thanks.

Michael.

 

 

 

 

28 Oct 19 at 13:25

Thanks Michael!

For bulk inserts from Excel to SQL Server you might be better off trying one of the techniques shown here https://stackoverflow.com/questions/52897825/insert-into-statement-from-excel-to-sql-server-table-using-vba

Alternatively, SQL Server Integration Services is designed for exactly this sort of task!  We have a few videos on SSIS which you can see here https://www.wiseowl.co.uk/integration-services/videos/ssis-basics/

I hope that helps!