Skip to content

Commit 643694e

Browse files
authored
Update README.md
1 parent e232ba1 commit 643694e

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,12 @@ private class MySampleEntityMapping extends AbstractMapping<MySampleEntity> {
113113

114114
### Order of Columns ###
115115

116-
If the connected user is granted access to the SQL Server Information Schema, then all mapped columns can
117-
be sorted automatically before bulk writing the data. But if the user is not granted access to the Information
118-
Schema, **then the mapping and destination schema have to match, and the fields must be mapped in the same order
119-
as the destination table**.
116+
The ``SqlServerBulkCopy`` implementation of the Microsoft JDBC driver requires, that the destination schema and
117+
mapping have same column order. This is done automatically by querying the metadata of the table and sorting your
118+
mappings, before inserting the data.
119+
120+
If this cannot be done automatically, because the JDBC driver does not return the metadata, **then the mapping and
121+
destination schema have to match, and the fields must be mapped in the same order as the destination table**.
120122

121123
## Getting Started ##
122124

0 commit comments

Comments
 (0)