|
|
 |
| 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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

April 14th, 2007, 03:09 AM
|
|
Authorized User
|
|
Join Date: Jul 2006
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

April 16th, 2007, 08:25 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,477
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

April 17th, 2007, 05:58 AM
|
|
Authorized User
|
|
Join Date: Jul 2006
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi,
Thanks for your reply.
Now it works perfectly.
|

April 17th, 2007, 06:08 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,477
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Can we all here know what was missing and how it was fixed?
_________________________
- Vijay G
Strive for Perfection
|

April 17th, 2007, 08:24 AM
|
|
Authorized User
|
|
Join Date: Jul 2006
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

April 17th, 2007, 09:34 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,477
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
can you post the code that is in suspect, so as to help better?
_________________________
- Vijay G
Strive for Perfection
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |