• Post Categories

  • Browse Blogs

  • Blog Stats

    • 624,384 hits
  • Syndications

    SQLServerPedia Contributor

Word Macro to load a Data Warehouse

Recently I came across a very specific requirement for a Data Warehouse project for one of our customers. Due to their very tight data access and transfer security, network packets were not only being encrypted, but they were also being scanned for DML T-SQL statements like Insert, Update and Select. If any of these statements came across the network the packets were immediately dropped.

With a little creativity and help from one of their developers, who by the way is a Microsoft Office MVP, we developed a Word Macro that enabled us to copy/paste data into the data warehouse.

We inserted more than a million rows less than 1 hour, which is not bad given the constraints and maintenance window.

Here is the link to download the script in text format which will work with the Adventure Works sample databases: MacroScript.txt


One Response

  1. Nice. Hook, line, and sinker… You had me at “Word macro”.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: