PowerArchiver Home

  #1  
Old 01-07-2009, 04:18 PM
klgrube klgrube is offline
Junior User
 
Join Date: Jan 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Calling paext.exe from SQL

I'm working in SQL 2005, trying to add a line to a SQL Server Stored Procedure that will extract a small set of text files from a zip file. The following command runs from the command line

D:\Utils\PACL\paext.exe D:\DataAgentTesting\TestOutupt.zip

but hangs when run from SQL.

EXEC master..xp_cmdshell 'D:\Utils\PACL\paext.exe D:\DataAgentTesting\TestOutupt.zip'

On the other hand, the first part of the command actually works . . .

EXEC master..xp_cmdshell 'D:\Utils\PACL\paext.exe'

It displays the normal help information you get if you run just paext.exe from the command line. I've tried a number of different parameters and tried setting various options, but it always just hangs and does nothing, as though it's waiting for some kind of input.

My REAL problem is that I can't get anyone from tech support to help!!! I'm really upset! I have a deadline and I need this to work and I've been trying for over a day now! I hope someone can shed some light onto why the program hangs like that when executed from SQL.
Reply With Quote
  #2  
Old 01-07-2009, 05:28 PM
TBGBe's Avatar
TBGBe TBGBe is offline
Still Mainly Lurking
 
Join Date: Jul 2001
Location: UK
Posts: 2,151
Thanks: 6
Thanked 102 Times in 94 Posts
Never used SQL shell... but one thing occurs to me; as you are running in a shell perhaps you need to specify the target directory [ -p command ]?
__________________
Terry

WinXP SP3
Reply With Quote
The Following User Says Thank You to TBGBe For This Useful Post:
spwolf (02-27-2010)
Reply

Bookmarks

Tags
paext.exe, sql

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:06 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.