Import data into SQL Server 2012 using wizard lost data (have date and empty cells in the same column) -
i know not new issue , have browsed lot not figure out.
the table contains column few dates (like 25-apr-16) while majority of rows empty. after importing sql, there null left; dates gone.
i have tried 3 methods:
- save file .xls, change column date format;
- save file .xls, fill empty null, change column date format;
save .csv;
so far, none of them worked.
at last, tried , worked, wondering if there better ways:
save file .xls, fill empty 12/31/9999, after importing, update 12/31/9999 null.
any appreciated.
thank you!
the issue when import data sql server sql server try wonder kind of data in each cell of sheet, , research on first 100 records. if there on top 100 records of cell, sql server considers cell empty. avoid that, can fill first record of excel sheet dummy values , after import sql server.
Comments
Post a Comment