Unable to to Zip files by SP using PKZIP

Last post 06-23-2009 1:35 PM by sharmainbox. 3 replies.
Page 1 of 1 (4 items)
Active Topics My Discussions Unanswered Sort Posts: Previous Next
  • 06-22-2009 12:22 PM

    Unable to to Zip files by SP using PKZIP

    Hi,

     I have written the below code, but It is not working with PKZIP(We cant use WINZIP).

    Create procedure [dbo].[sp_ZipFile] @zippedfileName varchar(50),@srcfileName varchar(50)

    AS Declare @cmdstr varchar(8000)

    Set @cmdstr = 'C:\Progra~1\PKWARE\PKZIPW\pkzipw -add '+ @zippedfile +' ' + @srcfile

    exec master..xp_cmdshell @cmdstr

     

    Please suggest me

    Arun

     

  • 06-23-2009 2:04 AM In reply to

    Re: Unable to to Zip files by SP using PKZIP

    Welcome to the forum!

    Are you getting any errors?

     

    --
    Frank Kalis
    Microsoft SQL Server MVP
    Contributing Editor, Writer & Forum Moderator http://www.sql-server-performance.com
    Webmaster: http://www.insidesql.org
    View Frank Kalis's profile on LinkedIn
  • 06-23-2009 1:07 PM In reply to

    • ws5926
    • Not Ranked
    • Joined on 01-21-2009
    • Posts 3

    Re: Unable to to Zip files by SP using PKZIP

    I do this on a daily basis, so I know it will work.  First off, what version SQL are you running and what version of Windows Server?

    Also, if you could post the error and the contents of the @cmdstr that is producing the error would help.

  • 06-23-2009 1:35 PM In reply to

    Re: Unable to to Zip files by SP using PKZIP

    No I am not getting any error, it is running for hrs. I my self is killing the process.

    Env : Win2003 server and sql server 2005

     Arun you using PKZIPW?

Page 1 of 1 (4 items)
Active Topics   My Discussions    Unanswered Posts


© 2010 Jude O'Kelly All Rights Reserved.