SQL insert cursors

Explains how to insert a log of rows into a table efficiently.