Importing an Excel spreadsheet into SQL Server - trouble with data types -


i have imported excel spreadsheet sql server 2014 database , 1 of data types miscalculated. in excel, field date, sql server changed nvarchar. it's odd because there other dates in spreadsheet converted semi-correctly ("date" in excel converted "datetime" in sql). know turning off "prevent saving changes..." check mark doesn't help. plus learned through looking @ questions here on stackoverflow not recommended, don't want it. did try it, though, , still didn't change data type. reason, when try force change data type "nvarchar" "datetime", sql won't it.

does have ideas why sql change data type , not let me change back? also, why sql change "date" data type excel "datetime" , not leave "date"? in advance responses.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -