Fixed SqlServer BulkCopy.

(cherry picked from commit 1cef31c494bd6092e4bcc1f8316c574dd01568a6)