Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

run immediately function is disabled in sql server 2012 import wizard

Tags:

sql

sql-server

I'm trying to import Excel files into a database without having to save it as an SSIS package but the "run immediately option is grayed out. How can I enable the "run immediately".

like image 434
user2220670 Avatar asked Aug 08 '13 17:08

user2220670


2 Answers

I had the same issue and it seems to be to do with trying to convert fields at the same time as doing the import. I was trying to convert a datetime to a nvarchar. To solve this I changed the data in that field in Excel to text, and next time I tried to import the Run Immediately option was available again.

like image 193
user3702582 Avatar answered Sep 20 '22 20:09

user3702582


if you want to be able to check run immediately you have to fix a few lines in excel if it matches the required data type.

First, you have to compare data types between source and destination enter image description here

Second, change the format of the data in the column in Excel enter image description here

like image 29
AgungCode.Com Avatar answered Sep 20 '22 20:09

AgungCode.Com