| AutoNumber |
int IDENTITY |
Existing key values arrive unchanged, so foreign keys still point at the right rows. |
| Currency, Decimal |
money; Decimal keeps its precision and scale, decimal(p,s). |
Exact to the last digit, including the Currency maximum. |
| Date/Time |
datetime2(0) |
Dates before 1753, which the old datetime type refuses, arrive intact. |
| Short Text, Long Text (Memo) |
nvarchar(n) and nvarchar(max) |
Unicode text and long memos arrive whole. |
| Yes/No, Replication ID, Large Number |
bit, uniqueidentifier, bigint |
Direct equivalents. |
| OLE Object, Binary |
varbinary(max) and varbinary(n) |
Copied byte for byte. |
| Attachment, multi-value fields |
nvarchar(max) holding the values as text |
The attached file names arrive, not the files. Each such field is named in the log. |
| Default values |
Now() becomes getdate(), Date() today's date, GenGUID() newid(); numbers and text are kept. |
A default that is an expression is dropped. |