in

System.Data.SQLite

An open-source, enhanced version of the SQLite database engine for Windows

Enabling NTFS file compression on a database file

Last post 11-21-2005 8:43 AM by Robert Simpson. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 11-21-2005 8:43 AM

    Enabling NTFS file compression on a database file

    Locked Reply Contact

    In case you missed the subject line, this only applies to NTFS volumes.  It also doesn't necessarily have to be a database file.  NTFS file compression is also transparent.  Once the compression bit is set, you continue to access the file normally.  It does not need to be decompressed.  The decompression function is shown below only for demonstration purposes.

    using System;

    using System.Data;

    using System.Data.Common;

    using System.Data.SQLite;

     

    namespace test

    {

    class Program

    {

    static void Main(string[] args)

    {

    SQLiteConnection.CompressFile("c:\\mydatabasefile.db3");

    SQLiteConnection.DecompressFile("c:\\mydatabasefile.db3");

    }

    }

    }

Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems