importing an excel file

  • 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

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

  • 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

  • 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

  • hi,

    plz check location of excel file from where your importing ..

    check whether no one accessing file or might be file open..

    regards

    HEMANT

  • Hi rollercoaster

    thats fantastic I cant thank you enough, the problem ended up being a wrong datatype in one of the columns

    thanks again

  • 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