Commit b10eb0b
committed
SqlBulkCopy works end-to-end over the TDS endpoint for SqlClient 6.x and 7.x: the metadata pre-batch parses via four general engine fixes (SET FMTONLY as session state returning schema-only zero-row results, leading-empty-segment names like ..proc and .[sys].[all_columns], sp_tablecollations_100 as a modeled system proc, bare SELECT TOP n *), INSERT BULK and the BulkLoadBCP packet decode client COLMETADATA + rows into the normal storage path (FIXEDLENTYPE tokens raw, decimals as sign + fixed 16-byte mantissa whose length byte only flags NULL), and probed bulk semantics land exactly: CHECK/FK skipped-and-untrusted by default vs enforced-and-trusted with CHECK_CONSTRAINTS, PK/UNIQUE/NOT NULL always enforced, triggers gated on FIRE_TRIGGERS, KeepIdentity/KeepNulls defaults, computed/rowversion server-generated, external-transaction rollback undoing the load.
1 parent bea9a41 commit b10eb0b
19 files changed
Lines changed: 1594 additions & 15 deletions
File tree
- SqlServerSimulator.Tests.SqlClient
- SqlServerSimulator
- Network
- Parser
- Simulation
- docs/claude
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments