[SQL Server] Don't use the unsupported sp_msforeachtable.

Fixes #10.