Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

importing an excel file Expand / Collapse
Author
Message
Posted Monday, April 1, 2013 7:29 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, March 3, 2014 4:58 PM
Points: 130, Visits: 214
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
Post #1437670
Posted Monday, April 1, 2013 10:31 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Today @ 2:04 AM
Points: 62, Visits: 411
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..
Post #1437685
Posted Monday, April 1, 2013 10:44 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, March 3, 2014 4:58 PM
Points: 130, Visits: 214
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
Post #1437689
Posted Monday, April 1, 2013 11:49 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Today @ 2:04 AM
Points: 62, Visits: 411
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
Post #1437708
Posted Tuesday, April 2, 2013 5:23 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, March 3, 2014 4:05 AM
Points: 47, Visits: 236
hi,

plz check location of excel file from where your importing ..
check whether no one accessing file or might be file open..

regards
HEMANT
Post #1437825
Posted Tuesday, April 2, 2013 3:45 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, March 3, 2014 4:58 PM
Points: 130, Visits: 214
Hi rollercoaster


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


thanks again
Post #1438120
Posted Tuesday, April 2, 2013 9:20 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Today @ 2:04 AM
Points: 62, Visits: 411
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..!!
Post #1438155
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse