Trying to zip / compress a file in Windows Server 2008 & SQL Server 2008 R2 server

Hi,
We are trying to zip / compress a xml file that has been created by retrieving data from SQL Server 2008 R2 database running on Windows Server 2008.
To compress this file, we cannot use any external softwares like 7-zip or WinZip.
So, we would like to know if there is any windows default compression tool that works on command line to compress the file?
As this is a live server we cannot apply any other softwares.
Please suggest any ways to do it in Windows Server 2008 machine.
Thanks & Regards
Kalyan

Hello Kaylan,
and for uncompress what can I use
This is a way to do it in SSIS
http://sqlblog.com/blogs/jorg_klein/archive/2009/08/27/ssis-unpack-a-zip-file-with-the-script-task.aspx
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Similar Messages

  • When I try to install Itunes, I get this error: (translated from Norwegian) There was a network error while trying to read from the file: C: \ windows \ installer \ iTunes.msi I have tried many times to reinstall, but nothing helps, please help me.

    When I try to install Itunes, I get this error: (translated from Norwegian) There was a network error while trying to read from the file: C: \ windows \ installer \ iTunes.msi I have tried many times to reinstall, but nothing helps, please help me.

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • When trying to send photos using iphoto  a window comes up and says that email server did'nt recognize user name /password ...what do i do to correct this please  marie

    hello     when I try to send photos using the iphoto  a window comes up to tell me that my email server didn't rercognize user name /password  how do i correct this .. as i have cganged my email address  but i can't get rid of the old  one    thank you   marie

    Hi Cody\'sgirl,
    If you are having issues emailing photos directly from iPhoto, you may want to double check the email account information that is set in iPhoto. You may find the following article helpful (the section below is about setting up a new account, but it should be the same location to check existing account info):
    To set up a Photo Mail account:
    Choose iPhoto > Preferences, and then click Accounts.If you’re in full-screen view, move your pointer to the top of the screen to make the menu bar appear.
    Click the Add button in the lower-left corner.
    Click Email, and then click Add.
    Choose your email service provider.If your service provider isn’t listed, choose Other.
    Type the requested information.If you use the Mail application included with OS X, some account information might be filled in already. If you’re not sure what to type, contact your service provider.
    You can set up more than one Photo Mail account by repeating these steps for each account. When you send an email, you can change the outgoing account by clicking the From pop-up menu and choosing an account.
    iPhoto '11: Email your photos
    http://support.apple.com/kb/PH2421
    Regards,
    - Brenden

  • KeyNote files corrupted by Zip-compressing!

    I've heard of people getting KeyNote files corrupted so that they are unopenable. I'd never experienced it until I Zip-compressed the file in the finder. Upon uncompressing, the file is corrupt and will NOT open. Yikes!! (Fortunately, I have the original still).
    This is serious if it is general. Can anyone else tell me if they see this (and a possible solution to fix a file corrupted in this way).
    Info: KeyNote '08 (4.0.3), intel mac. System 10.5.2

    I have had that problem, and it happens when the source Keynote file is on an external (firewire) drive. If I copy the file to the root/main drive THEN zip it, it works fine.
    ....and this happens on multiple Macs and multiple external drives.

  • Opening a PDF file in windows 8.1 doesn't load the pdf

    I have an HTML code which is trying to read a pdf file in windows 8.1 . The problem is since windows 8.1 has its default pdf reader, so for the system which has adobe installed, pdf is not getting loaded.
    Can you please suggest any way to specify which pdf reader to be used for loading?
    Cheers

    Hi Pals28,
    Please consult Adobe forum about this PDF read related issue:
    https://forums.adobe.com/welcome
    Regards,
    Barry Wang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I can't open batch files in windows 8.1

    I am trying to run a batch file in windows 8.1, when i run the batch file runs at first but closes so fast that you can't see its contents, you can't even see if its doing what you tell it to. Since the file does run but closes fast, i thought of adding
    pause. Adding pause did not fix the problem. I am not sure if i have to change my keys on regedit, or i have some kind of malicious software  that needs to be fixed  ( I think i have no malicious software, i  have run security scan many times
    nothing showed up, I had a Trojan horse, Trojan.Gen2, long time ago but the Trojan got quarantined?) I originally had windows 8 but upgraded to windows 8.1. 
    Help Please! I don't Know what to do!!!

    Hi Glogikon,
    "I am trying to run a batch file in windows 8.1, when i run the batch file runs at first but closes so fast that you can't see its contents, you can't even see if its doing what you tell it to."
    According to my experience ,it is a normal symptom .Did the bat file run well before ?
    Have you tried to run the command one by one in the bat file from a command line ?Have you tried to run the other bat files which including a output to have a check ?
    If it is possible ,please post the command of the bat file here .We will make a test for you .
    To check whether the bat run well ,this link may be useful:
    check if command was successfull in a batch file
    http://stackoverflow.com/questions/14691494/check-if-command-was-successfull-in-a-batch-file
    " I think i have no malicious software, i  have run security scan many times nothing showed up,"
    We can try to work with the following official free tool to have a check .It is recommended to run it in a safe mode to improve the quality of the scanning.
    Malicious Software Removal Tool
    http://www.microsoft.com/security/pc-security/malware-removal.aspx
    NOTE: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites.
    Best regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Using m4a files with window moviemaker

    i'm new to itunes. I'm trying to use m4a audio files with windows moviemaker but could not. is there a way to change file ext or to download in mp3 form?
    thanks

    Open the General section of the iTunes preferences, click the Import Settings button, change the default encoder to MP3, drag the songs into iTunes, right-click them, and convert them.
    (44585)

  • Zip compression stuttering

    Hello,
    I'm writing a program for Zip compressing some files but it's performance is quite odd. It zips the first four files very quickly and then stops for a long time (CPU usage=0%) when closing the 5th entry. Then it zips the next four files and stops again, this time when putting a new entry on the stream. Again, CPU usage=0%. Am I doing something wrong? Here's the code - the getfiles method returns all the files on a directory and is working correctly. Printing the letters a,b,c,d,e is only for debugging purposes.
    public static void main(String[] args) throws Exception{
            //get the files
            ArrayList files = getFiles(new File(args[0]));
            int i=0, numFiles=files.size();
            File result = new File("aux.zip"), aux=null;
            byte[] buffer;
            BufferedInputStream in;
            ZipOutputStream out = new ZipOutputStream(new BufferedOutputStream(new FileOutputStream(result)));
            System.out.println("Number of files: "+numFiles);
            // Start the compression
            for (i=0; i<numFiles; i++) {
                aux = (File)files.get(i);
                System.out.println("Working on "+aux);
                in = new BufferedInputStream(new FileInputStream(aux));
                System.out.println("a");
                out.putNextEntry(new ZipEntry(aux.getPath()));
                System.out.println("b");
                int len;
                buffer = new byte[ (int)aux.length() ];
                while ((len = in.read(buffer)) > 0) {
                    out.write(buffer, 0, len);
                System.out.println("c");
                out.closeEntry();
                System.out.println("d");
                in.close();
                System.out.println("e");
            out.close();
    }Thanx in advance! :)

    I tested the code with four small (<3kB) text files and once again, it blocked for a while closing the stream (not the entry) but it didn't create the zip file? Is my code OK?
    I never debugged anything using that method, so I'd be thankful for some help. Here's what I got from Ctrl+Break:
    Full thread dump Java HotSpot(TM) Client VM (1.5.0_01-b08 mixed mode):
    "Low Memory Detector" daemon prio=5 tid=0x009c1ef0 nid=0x218 runnable [0x00000000..0x00000000]
    "CompilerThread0" daemon prio=10 tid=0x009c09f8 nid=0x448 waiting on condition [0x00000000..0x0ac5f8bc]
    "Signal Dispatcher" daemon prio=10 tid=0x009bfcb8 nid=0x1c8 waiting on condition [0x00000000..0x00000000]
    "Finalizer" daemon prio=9 tid=0x009b70f8 nid=0x124 in Object.wait() [0x0abdf000..0x0abdfc64]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x02a80850> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
         - locked <0x02a80850> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
         at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
    "Reference Handler" daemon prio=10 tid=0x009b5c08 nid=0x3f4 in Object.wait() [0x0ab9f000..0x0ab9fce4]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x02a80760> (a java.lang.ref.Reference$Lock)
         at java.lang.Object.wait(Object.java:474)
         at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
         - locked <0x02a80760> (a java.lang.ref.Reference$Lock)
    "main" prio=5 tid=0x00235ee0 nid=0x4e0 runnable [0x0006f000..0x0006fc38]
         at java.io.FileOutputStream.writeBytes(Native Method)
         at java.io.FileOutputStream.write(FileOutputStream.java:260)
         at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
         at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
         - locked <0x02aa6ed8> (a java.io.BufferedOutputStream)
         at java.io.FilterOutputStream.close(FilterOutputStream.java:140)
         at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:144)
         at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:310)
         at CryptoWorker.main(CryptoWorker.java:61)
    "VM Thread" prio=10 tid=0x009b3208 nid=0x3d8 runnable
    "VM Periodic Task Thread" prio=10 tid=0x009c3490 nid=0x2d4 waiting on condition

  • I am trying to send minutes of a meeting to pc users by clicking on export and choosing the word option.  Recipients are unable to open them saying they came as a ZIP compressed folder.  No idea what that is or how to correct the problem.  Help!

    I am trying to send minutes of a meeting created in Pages to pc users by clicking on export then word.  Recipients are telling me they cannot open the minutes which have come as a ZIP compressed folder.  I have no idea what this is or how to fix the problem.  Help?!

    A pc user can open a .zip file by double clicking it.
    If that does not work, you can convert the document to a .pdf by doing the following.
    With the document active, type commannd + P  (the print command).
    In the next screen, on the bottom left, click on PDF, and in the drop down select Save as pdf...
    You will be asked where the .pdf should be saved - the desktop is the easiest.
    Now when you want to send the minutes, you have them as a .pdf file. Anyone with Adobe Acrobat Reder can open this.

  • How do you create an AcrobatXI zip file in windows 8.1?

    How do you create an AcrobatXI zip file in windows 8.1? from acrobat.com docs?  Sorry Not sure what community to ask this in this community?  The email provider I was using didn''t seem to want to accept it through Adobe Send the first time and since Adobe Send ends January 6, I am assuming a zip file is preferable..  I thought I had seen an Adobe Zip file somewhere but haven't been able to locate it. Any help appreciated.
    Thank you.
    Sherrie

    Hi Sherrie L,
    Adobe Send is Adobe's current solution for sending large files. (It's Adobe SendNow that's retiring soon.) Can you tell us what trouble you were running into using Adobe Send?
    There isn't a special version of Zip files for Acrobat, but you could reduce the PDF file size if you have Acrobat. Or, in Windows, you can create a Zip file by choosing File > Send to > Compressed (Zipped) Folder.
    Best,
    Sara

  • Adobe Acrobat X Pro ZIP Compression Creates Larger Files

    Hello,
    I made a flyer in InDesign CS 6 which contains a fairly complicated vector image made with Illustrator. When I export to PDF, InDesign creates a file of the size of 26 MB (ish). I then run preflight in Acrobat which finds that the vector image isn't compressed.
    Note that my PDF settings in InDesign are set to bicubic subsampling for colour images that are above 450 px and JPG compression.
    When I tell Acrobat to apply fixes, it tries to apply ZIP compression but the file size is then 38 MB. Could anyone shed light on this for me please? There is obviously something basic about vector images and compression that I am missing.
    It also finds elements that are completely off the board, although I didn't put anything there with InDesign.

    Test Screen Name: After seeing your response I run a little test. I made a PDF straight from Illustrator just using that image then preflighted it and I got the same error.
    I then opened that same PDF in Illustrator, a lot of that artwork was turned into images. I think it's the transparency flattener as I am converting to PDF/X-1A with compatibility for Acrobat 4 (which I should have probably mentioned in the first post but I didn't make the connection between the two). As far as I understand the transparency flattener converts an image into a mix of paths and rasters (according to Adobe's own help files.)
    Preset used for preflight is sheetfed offset CMYK btw.

  • Cannot see zipped files in Windows Explorer

    I used the code below to create a zip file. When I use Winzip to open a zip file named test.zip, I can see all the files (a.txt, b.class, etc.) that have been zipped. But, when I double-click on the test.zip in Windows Explorer (Windows XP Professional), I cannot see any of the zipped files.
    Can someone give me some pointers?
    import java.util.*;
    import java.util.zip.*;
    import java.io.*;
    public class CreateZip
         public CreateZip()
         public void createZipFile(String[] all_array, String zipfilename)
              FileOutputStream pout; // declare a file output object
    PrintStream p;
              String file_path = "D:\\Docs\\FedPlanner\\";
    try
    pout = new FileOutputStream(file_path + "FedPlanner_Zip_log.txt");
    p = new PrintStream( pout );
                   for (int i = 0; i < all_array.length; i++)
                        System.out.println("all_array = " + all_array);
                        p.println (all_array[i]);
    p.close();
    catch (Exception e)
    System.err.println ("Error writing to file");
              byte[] buf = new byte[1024];
              try
                   String outFilename = file_path + zipfilename;
              ZipOutputStream out = new ZipOutputStream(new FileOutputStream(outFilename));
                   for (int i=0; i< all_array.length; i++) //
                   FileInputStream in = new FileInputStream(file_path + all_array[i]);//filenames
                   out.putNextEntry(new ZipEntry(file_path +all_array[i]));//filenames
                   int len;
                   while ((len = in.read(buf)) > 0)
                   out.write(buf, 0, len);
                   out.closeEntry();
                   in.close();          
              out.close();
              catch (IOException e)
                   e.printStackTrace();
         public static void main(String args[])
              for(int i=0; i < all_array.length; i++)
                   System.out.println("x = " + all_array[i]);
              CreateZip create = new CreateZip();
              create.createZipFile(all_array);

    I have never created a zip file using Java . But from what i know about Winzip and Window Explorer, here's my takes on it:
    1. Winzip works with severals different compression algorithm 9including their own)
    2. Winzip has the ability to display the content of the zip file (if the zip file happens to be one of the compression algorithm they supported....otherwise, it's highly unlikely, winzip can even open the file)
    3. Window Explorer does not call Winzip to display the content of Winzip file. rather, Window Explorer has its own utility to look into the Winzip for files and display them. Note: they probably only do this for the popular compression algorith (such as Winzip .zip, probably .tar...but highly doubtful of the one that Java use to make a zip file).
    So..it's probably Window Explorer does not supports display that compression algorithm (the one Java use) for a Winzip file.
    Example...you created a new format for an image call .mypics
    Window Explorer can display a thumb nail for .bmp, .jpeg, and quite a few other
    You created an application to display the image. Now..in Window Explorer, when you click on the icon, the thumbnail of the pic is not display...this is because Window Explorer does not have a util to do thumbnail for that format.

  • Zip compression to windows

    I am having a semi frequent problem. I use the built in zip compression and compress the file. Half the time, window users when they unzip the file see empty files. Any suggestions.
    SJ

    stjoe57 wrote:
    That answer sort of begs the questions:
    1. Why can Mac users uncompress the zip files and see the files.
    Dunno. I suspect it's something to do with the compression algorithm used.
    2. Why do some window users users uncompress the zip files and see empty file.
    Dunno. I suspect it's something to do with the compression algorithm used.
    3. I really do not know who is going to uncompress these files. I just cannot tell them to get another file.
    I don't follow. I didn't tell you to use another file. Just another compression utility. Stuffit Expander has great compatibility across all platforms.

  • Making a .zip doubles files when Windows opens it

    So I just found out that when I make a .zip using the 'compress x items" service and then someone uses winzip to open the file, it duplicates them and creates two folders - one of which is full of duplicate non-files.  What's going on here and how can I fix this so that what I see when I unzip the file is what PC users see?

    actually I don't know.  Someone told me that the second folder was called "meta [something]" and was filled with what looked like duplicates but were unreadable.  I think I read somewhere when looking into this that OS X makes this meta information when compressing files that contain icons and whatnot. 
    BUT, I tried that zip program and it seemed to work, but I haven't been able to check it yet.  Also the file size was about 5 megs larger (which isn't that big of a deal, but I thought interesting to note).

  • Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file

    Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file
    How do I fix this?

    That would probably be a question best taken up in on a site for Windows support questions. Not knowing anything about the movie you're trying to play, all I can suggest is to confirm that the format of the movie you wish to play is supported in your version of WMP. If it isn't, you'll either need to convert the movie or use some other player software.
    Regards.

Maybe you are looking for

  • "there was an error opening this document the root object is missing or invalid" adobe reader 9

    I get the following message every time I try an open some of my saved PDF files in Adobe Reader 9 "there was an error opening this document. the root object is missing or invalid." these files are not down loaded from a website, they are files I grea

  • How reset Tracking=0 in Illustrator?

    Why do i can't set Tracking of character =0   ? Set : oCharRange.CharacterAttributes.Tracking = 0 Result after set oCharRange.CharacterAttributes.Tracking =-30 But i set number <> 0 ok How reset Tracking=0 in Illustrator?

  • Filter Function Paging Issue

    Hi there guys I found this piece of code here and with all apologies can not recall who contributed. I have used this like a search. If one places a code in the text field it will narrow down the list till it is the only one displayed in the list. Th

  • Color a table row

    Hello community! I'm using a table in a view, and I'd like to color some rows depending on a condition value. I've found some tips for coloring a row when using an ALV, but that's not my case. How could I do that? Thanks for any help =) Have a great

  • Can I release all the activites  at a time?

    Hi Experts,   I am have 50 activities in transport studio of NWDS which are supposed to move to test system. so can I select all the activities and release at at time from studio . Regards Sridhar