April 1, 2013 at 7:29 pm
hi professionals.
I am trying to import and excel spreadhseet into the database by right clicking the database, tasks, import. I chosen excel as the source and went through the wizard.
It goes through all the tasks
Initilizing data flow,success
Initilizing connections,success
Setting SQL command,success
Setting source connection,success
Setting destination connection,success
validating,success
prepare for execute,success
pre-execute,success
executing,sucess
copy to dbo.SofUseComp (It hangs here)
Post execute
It hangs on the copy part of the import wizard, any ideas where I can look to see whats going on. I have imported small files without any problem.
This spreadsheet has ten columns and 1,048.576 rows
thanks everyone in advance
April 1, 2013 at 10:31 pm
Hi,
Do you get any errors while the import is going on or it just gets hanged?
Also, can you try running the Profiler while you are performing this task and check if there are any events reported ? You can also check the Sql error logs to find some more details of whats happening..
April 1, 2013 at 10:44 pm
Hi there no im not getting any error messages it is just hanging, i am new to sqlserver, where would i locate the profiler and the sql error logs
thanks
April 1, 2013 at 11:49 pm
To view the Sql Server Error Logs, go to Sql Server Agent Node in SSMS object Explorer and expand it -> Expand the Error Logs node -> Double click "Current" to view the log file viewer window.
IN the Log File viewer window, you can check the Sql Server node and under it, check the Current box to view the errors logged by Sql Server.
You should be able to find some information related to your import in the logs(Check the timestamp or restart the import operation to view the current details )
If you do not see relevant error messages in the error logs, Go to Tools and Select Profiler to start a trace while you perform the import operation. How to operate the profiler can be learnt from the below link :
http://www.codeproject.com/Articles/21371/SQL-Server-Profiler-Step-by-Step
April 2, 2013 at 5:23 am
hi,
plz check location of excel file from where your importing ..
check whether no one accessing file or might be file open..
regards
HEMANT
April 2, 2013 at 3:45 pm
Hi rollercoaster
thats fantastic I cant thank you enough, the problem ended up being a wrong datatype in one of the columns
thanks again
April 2, 2013 at 9:20 pm
Alan you are Most welcome!!... Many a times when copying a data from Excel or flat files, Its the datatype mismatch issue which bothers us the most... Good Day..!!
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply