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:

  1. save file .xls, change column date format;
  2. save file .xls, fill empty null, change column date format;
  3. save .csv;

    so far, none of them worked.

    at last, tried , worked, wondering if there better ways:

  4. 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

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -