Wrox Programmer Forums
|
SQL Server 2005 General discussion of SQL Server *2005* version only.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 14th, 2007, 02:09 AM
Authorized User
 
Join Date: Jul 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Bulk Insert Problem

Hi,
I have used bulk insert in stored procedure to load data from csv file to temporary tables.
Now, i have nested procedures (one calls another...). When the bulk insert part is executed sql server hangs. Process can not be executed further more. I am logged in with "sa" user.
so what can be the possible reasons for this?

Thanks in advance.
Please reply.

 
Old April 16th, 2007, 07:25 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Are you seeing any errors during then? What is the volume of data you are trying to load? Can you try executing that part separately and see if works.

_________________________
- Vijay G
Strive for Perfection
 
Old April 17th, 2007, 04:58 AM
Authorized User
 
Join Date: Jul 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Thanks for your reply.
Now it works perfectly.

 
Old April 17th, 2007, 05:08 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Can we all here know what was missing and how it was fixed?

_________________________
- Vijay G
Strive for Perfection
 
Old April 17th, 2007, 07:24 AM
Authorized User
 
Join Date: Jul 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Actually we feel problem is in bulk insert code. But with debugging we came to know that we have used xp_cmdshell extended stored procedure to execute os commands.
We are using file shredder tool to permanently delete files using xp_cmdshell command. Now this command works perfectly at our end.
but it hangs up client's pc when that command is executed.
Still we are not able to solve this issue. If anybody can help please reply.

 
Old April 17th, 2007, 08:34 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

can you post the code that is in suspect, so as to help better?

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 3 - Bulk Insert Example Problem. AP BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 4 February 5th, 2009 04:50 PM
hi problem on bulk insert command karthikc85 SQL Server ASP 1 November 8th, 2006 04:22 AM
Bulk Insert Problem pseudo SQL Server 2000 2 October 4th, 2006 06:48 AM
Problem with Bulk Insert starnet SQL Server 2000 1 September 13th, 2006 08:29 AM
BULK INSERT PROBLEM ZoroAstris SQL Language 3 January 3rd, 2005 09:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.