SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


importing an excel file


importing an excel file

Author
Message
Oracle765
Oracle765
SSC-Addicted
SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)

Group: General Forum Members
Points: 436 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
rollercoaster43
rollercoaster43
SSC Veteran
SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)

Group: General Forum Members
Points: 239 Visits: 435
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..
Oracle765
Oracle765
SSC-Addicted
SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)

Group: General Forum Members
Points: 436 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
rollercoaster43
rollercoaster43
SSC Veteran
SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)

Group: General Forum Members
Points: 239 Visits: 435
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
Hemant.R
Hemant.R
Old Hand
Old Hand (352 reputation)Old Hand (352 reputation)Old Hand (352 reputation)Old Hand (352 reputation)Old Hand (352 reputation)Old Hand (352 reputation)Old Hand (352 reputation)Old Hand (352 reputation)

Group: General Forum Members
Points: 352 Visits: 240
hi,

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

regards
HEMANT
Oracle765
Oracle765
SSC-Addicted
SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)

Group: General Forum Members
Points: 436 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
rollercoaster43
rollercoaster43
SSC Veteran
SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)

Group: General Forum Members
Points: 239 Visits: 435
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..!!
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search