How to Protect a Database File from Being Copied: Step-by-Step Guide 2026
A database file is the single file, such as an SQLite .db, an Access .accdb or a SQL Server .mdf, that holds a database’s tables on disk. This guide covers Windows 10 and Windows 11 and shows how to keep that file from being copied by people and programs you did not approve.
Remove read access for every account that does not need it, encrypt the file or its drive, and give outsiders an export instead of the live file. No setting can stop copying while a file stays readable, so pick the layer that controls who can read.
| Applies to | SQLite, Access and SQL Server files on Windows 10 and 11 |
|---|---|
| Time needed | 20 to 40 minutes for the built-in methods |
| Difficulty | Moderate; two steps need an administrator account |
| Cost | Built-in methods are free; one paid tool offers a free trial |
| Internet needed | Only for downloading tools and reading vendor documentation |
| Last verified | November 2026 |
How to Protect a Database File from Being Copied: Quick Answer
A database file in use cannot be made uncopyable, because the program that opens it must read every byte, and anything that reads bytes can write them out again. Protection therefore means limiting who can read the file, encrypting its contents, and sharing exports instead of the live file.
If the file lives on your own PC
Move it to a folder owned by your Windows account and remove inherited access for other users. On Windows 11 that is the Security tab under file Properties. Add BitLocker on Pro editions so a lost laptop does not hand over the file.
If other people reach the file over a network
Stop sharing the data folder. Let people connect through the database engine with named accounts, because an account can be limited, logged and removed, while a copied file cannot.
If you need to hand it to someone else
Send an export, a report or a backup you encrypted first. A live file cannot be bound to a single device, and the file formats that can be bound are media and documents, not databases.
What You Need Before You Protect a Database File
Four things decide which protection works: the database engine, the Windows edition, the file system of the drive, and an administrator account. Check each one before changing permissions, because a wrong guess can lock the owner out of the file.
Engine and file type
SQLite keeps one .db file, Access uses .accdb, and SQL Server uses .mdf plus .ldf. The engine decides whether the file can carry its own password or encryption.
Windows edition
BitLocker management is part of Windows Pro, Enterprise and Education. Home editions may offer device encryption on supported hardware, so confirm in Settings first.
NTFS, not FAT
Permissions live on NTFS volumes. A copy placed on a FAT or exFAT drive arrives without them, as Microsoft’s permission documentation explains.
An administrator account
Changing ownership and permissions needs elevation. Keep a second admin account in case a change locks your own sign-in out.
Make a verified backup before you touch permissions or encryption. A mistake on the only copy can end with a database nobody can open.
What Copy Protection Really Does
Copy protection is a set of controls that make copying harder or the copy less useful. It does not remove the file’s readability. Raymond Chen of Microsoft explains that Windows has no “copy” permission at all: copying is reading a file into memory and writing it out.
The Read-Equals-Copy Rule
We use one short rule to judge any protection idea. Ask three questions, in order, and the weak spot shows up fast.
- Who can read the bytes? Anyone who can read them can copy them, so narrow this group first.
- What do readers receive? Plain contents travel with the copy. Encrypted contents stay useless without the key.
- What leaves your control? The live file should not. Exports and reports should, in a format built for the audience.
Four layers, from cheapest to most specific
Layers 1 and 2 cost nothing. Layer 3 costs little on modern hardware. Layer 4 applies only to files you distribute, and it applies to supported media and document types.
Realistic threat model: casual copying and determined attackers
A coworker dragging a file to a USB drive is a casual copier. Someone with administrator rights, a boot disk or the encryption key is a determined one. Built-in controls stop the first group. Only encryption with a protected key and server-side accounts hold against the second.
Best Free Methods to Protect a Database File from Being Copied
Five free methods cover most cases: NTFS permissions, the read-only attribute, engine accounts, database-level encryption, and drive encryption with BitLocker. Each one blocks a different path to the file, so combine them instead of choosing one.
Easy way to protect a database file from being copied: NTFS permissions
Right-click the database folder, open Properties, then Security, then Advanced. Disable inheritance, remove the Users group and keep your account and SYSTEM. Other Windows accounts now get “Access denied”. Administrators can take ownership, so this stops casual copying only.
Read-only attribute
The read-only flag blocks edits, not copies. Anyone can still copy a read-only file. Use it to stop accidental changes to a reference database, and never count it as copy protection.
Engine accounts and roles
SQL Server, PostgreSQL and MySQL keep data behind logins. Give each person a named account with the lowest rights they need. For time limits, PostgreSQL documents VALID UNTIL on a role, which turns a login off after a set timestamp.
Encryption inside the database
Microsoft Access can encrypt an .accdb with a password. Open the file exclusively, then choose File, Info, Encrypt with Password. SQLite has no encryption in its free core, and SQLCipher adds page-level encryption to SQLite files. SQL Server’s Transparent Data Encryption protects the files and backups, and a restore on another server needs the certificate.
Drive encryption with BitLocker
BitLocker encrypts the whole volume, so a stolen disk shows nothing. It protects the file at rest only. Once Windows unlocks the drive, a signed-in user can still copy the file. Windows Home may offer device encryption instead of full BitLocker management.
Permissions plus drive encryption plus engine accounts is a sound base for a small business. Paid tools matter when you distribute files to people outside your control.
Works well for
- Files that stay on machines you control
- Stopping other accounts and lost laptops
- Keeping a clear audit trail through engine logins
Falls short when
- Someone holds administrator rights or the key
- You must hand the file to an outsider
- The file lands on a FAT drive or a personal cloud folder
Step-by-Step: Protect a Database File from Being Copied
The steps below take a Windows 11 PC with an SQLite or Access file from open access to an owner-only file in about 25 minutes. Work in order, and test after every change so a mistake shows up while the backup is fresh.
- Close the database and make a backup. For SQLite, use the
.backupcommand orVACUUM INTOrather than dragging the file, because a plain copy during a write can be corrupt. - Move the file into a dedicated folder on an NTFS drive, such as
C:\Data\Private. - Take ownership if needed. In Properties, Security, Advanced, set yourself as Owner.
- Disable inheritance and choose “Remove all inherited permissions”, then add only your account and SYSTEM with Full control.
- Turn on drive encryption. On Pro editions open Control Panel, BitLocker Drive Encryption, and save the recovery key somewhere other than this PC.
- Add the engine’s own control, for example an Access password or a named SQL Server login.
- Test from a second account and confirm access is denied (see the verification section).
icacls "C:\Data\Private" /inheritance:r /grant:r "%USERNAME%":(OI)(CI)F SYSTEM:(OI)(CI)F
icacls "C:\Data\Private"Can you protect a database file from being copied? Yes, against other accounts and lost devices. Against its own owner or an administrator, only encryption with a key held elsewhere works.
Copy Protection vs Encryption vs DRM
Encryption protects contents, copy protection resists duplication, and digital rights management controls what an authorised viewer may do. A database needs the first. Media you distribute can use the second or third. Mixing them up leads to the wrong purchase.
| Approach | Difficulty | Security | Cost | Best for | Limitations |
|---|---|---|---|---|---|
| NTFS permissions | Low | Stops other accounts | Free | Files on your own PC | Administrators can take ownership; lost on FAT drives |
| Drive or file encryption | Low to medium | Strong against lost or stolen disks | Free with BitLocker on Pro | Laptops, backups, external drives | Plain once unlocked; the key must be stored apart |
| Engine accounts and roles | Medium | Strong for network users | Free | Multi-user databases | Does nothing for a file copied from disk |
| Device-bound output (Copy Protect) | Medium | Deters casual copying | Trial, then paid | Reports, documents, video | Supported media and document types only; not live databases |
| Rights management (DRM) | High | Controls viewing, printing, expiry | Varies by service | Documents sent to many recipients | Needs a managed service and recipient accounts |
| Verdict | Layer them | Encryption plus accounts | Mostly free | Keep databases off shared folders | Use bound output for exports only |
Myth
Copy protection can lock a database file so nobody can duplicate it.
Fact
A database file must stay readable to its engine. Encryption and accounts protect it; bound output is for the exports you distribute.
Choosing a Protection Method
Pick the method from two facts: what kind of file you have and who might copy it. A live database, an export and a backup need different controls, and the picker below maps each pairing to a sensible starting point.
The Read-Equals-Copy decision table
| File | Other accounts on the PC | People on a network | Outside recipients |
|---|---|---|---|
| Live database | Owner-only permissions | Engine accounts and encryption | Do not send; export instead |
| Export or video | Read-only copy, master kept elsewhere | Restricted share | Bound output for supported types |
| Backup | Encrypted drive | Encrypted, restricted location | Encrypt, send key separately |
Protecting Files on USB Drives and Discs
A USB drive or disc copy is only as protected as the file system and format on it. NTFS keeps permissions, FAT and exFAT drop them, and a disc has no accounts at all, so media you hand over needs protection built into the output itself.
Protecting USB distribution drives
Windows copies a file’s permissions only when the destination is NTFS or ReFS. Move an NTFS file to a FAT32 stick and the copy arrives with open access, as Microsoft’s documentation on copying files describes. Our full guide to stopping file copies from a USB drive covers formatting, encryption and handover. For drives that carry a database, see this walkthrough on USB data leak defence, or read how to encrypt an external hard drive on Windows 10 and 11.
Protecting CD and DVD content
Optical discs carry no permissions. The realistic options are to author the disc from a protected output, or to ship a drive instead. Use rewritable media only for drafts, since a finalised write-once disc cannot be altered but can still be read and duplicated.
Binding content to a single PC
Binding ties the output to the device it was prepared for. The Copy Protect product page describes executables that run only on that device. Because hardware changes, state the supported machine in your handover note and test the output on it before you ship.
Distributing training and course material safely
Course packs mix video, slides and worksheets. Protect each by type, keep an unprotected master, and give each cohort its own output. Our guide to protecting training videos sets out the course-pack method in full.
Setting Expiry and Usage Limits
File permissions cannot expire on their own, and the Copy Protect page does not document an expiry date or a usage counter. Time limits therefore come from the account system around the file, such as a PostgreSQL role with VALID UNTIL or a document rights service.
Licensing and expiry options
| Option | What expires | Who controls it | Applies to |
|---|---|---|---|
| Database role with VALID UNTIL | A login to the database | The database administrator | PostgreSQL roles |
| Time-limited share link | Access to a hosted file | The storage provider | Exports and documents |
| Rights management service | Open and print rights on a document | A managed service | Documents sent to named people |
| Bound output | Not documented for Copy Protect | Not applicable | Check the product page |
ALTER ROLE contractor VALID UNTIL '2026-12-31';A simple review cycle for time-limited access
- Create a named role for each contractor, never a shared login.
- Set VALID UNTIL to the contract end date.
- Review the list on the first working day of each month.
- Drop the role once the work ends and remove its grants.
Limits and Common Mistakes
Four limits apply to every copy-protection tool: a screen can be photographed, a determined user with the key can decrypt, administrators can take ownership, and protected output exists only for supported file types. Plan around them instead of hoping they do not apply.
Is it possible to protect a database file from being copied?
Partly. You can stop other accounts, lost devices and casual duplication. You cannot stop a person who may legitimately read the file and chooses to export it. Plan for deterrence plus audit, and keep sensitive data behind accounts, not inside a file you hand out.
Screenshot and print-screen limits
Any content shown on a screen can be captured with a phone camera. Bound output blocks file duplication, not photography. For text and video, add visible watermarks with the viewer’s name so a leak can be traced.
Copy protection deters casual copying. It does not stop a determined attacker, and no tool in this guide claims otherwise.
For a wider look at keeping files away from other accounts, this guide to protecting files from unauthorized access on Windows and Mac covers permissions on both systems.
Common Mistakes When You Protect a Database File from Being Copied
Five mistakes cause most failures: copying a file while it is being written, separating a database from its journal, storing the password beside the file, moving the file to a FAT drive, and trusting the read-only flag. Each is easy to avoid once you know it.
- Copying a live file. The SQLite documentation warns that a plain copy taken during a write can be corrupt. Use
.backuporVACUUM INTOinstead. - Splitting file and journal. A hot rollback journal or a -wal file belongs to its database. Move them together or not at all.
- Keeping the key beside the file. A password in a text file in the same folder defeats the encryption.
- Using a FAT drive. Permissions disappear on copy, so the protected file arrives open.
- Trusting read-only. The read-only attribute blocks edits and nothing else.
Myth
Setting a file to read-only protects it from being copied.
Fact
Read-only stops changes. Anyone who can read a file can still copy it, so use permissions and encryption for this job.
The Tool We Recommend for Distributed Files
Of the options covered above, we recommend Copy Protect’s documented file types when the goal is sending documents, pictures, audio or video to people outside your control. Our own product has limits: it runs on Windows and does not list database formats.
What Copy Protect does
The software prepares supported files so the output resists casual copying. You choose the files and the drive, and the output is written there.
- Handles supported document, picture, audio and video types
- Writes protected output to a drive you select
- Lists Windows 10, 8 and 7 and FAT, FAT32 and NTFS drives on its product page

Where it does not fit
We would rather you know the limits before you download anything.
- No database formats are listed, so it will not wrap a live .db or .accdb file
- The product page lists Windows only, with no Mac version
- Windows 11 is not named on the page, so test before you rely on it
- A recorded screen still copies the content

How to Bind an Exported Report or Video to a Drive
Five steps take an exported report or video from your master folder to a protected drive in about ten minutes. The screens below come from the product, and the install uses the Windows installer.
Choose the files
- Install and open the program. Accept the defaults and start from the first screen.
- Add files or a folder. Pick the exported report or video, not the database itself.

Review the ready list
- Check the ready list. The screen shows each file with its estimated size and time, so confirm nothing is missing.

Pick the drive and test
- Select the destination drive. Check free space first, because the output can be larger than the source.
- Test on a second computer. Open the output there, then try to copy it. Keep the unprotected master in a separate encrypted place.

Cost and Free Trial: What the Official Page Shows
The Copy Protect product page offers a free trial and sells the full version through the NewSoftwares.net store. We do not quote a price or trial length here, because the page shows neither as a figure we can verify, and the store displays the current price at checkout.
| Item | What the official page shows |
|---|---|
| Trial | A free trial is offered; limits are not stated as a figure |
| Full version | Sold through the NewSoftwares.net store; price shown at checkout |
| Platform | Windows 10, 8 and 7 |
| Drive formats | FAT, FAT32 and NTFS |
| Supported files | Documents, pictures, audio and video; no database formats |
Is it worth it? If you distribute supported media to outsiders, a trial answers the question in an afternoon. If your goal is a live database, spend the effort on permissions, accounts and encryption instead, which cost nothing.
Protect a database file from being copied for free
Free options cover the file itself: NTFS permissions, BitLocker on Pro editions, Access passwords and engine accounts. Pay only when you have supported media to distribute, because that is the one job the free tools do not do.
File Protection Software
File protection software falls into three families: permission managers, encryption tools and bound-output tools. Each family blocks a different route to a file, so the useful question is which route worries you, not which brand is most popular.
| Family | Blocks | Example job | Does not block |
|---|---|---|---|
| Permission manager | Other accounts | Hide a folder from users | An administrator, a boot disk |
| Encryption tool | Reading a stolen copy | Lock a USB drive | A user who knows the password |
| Bound-output tool | Casual duplication of media | Ship a training video on a drive | Screen recording |
Our comparison of file protection software and Windows permissions goes through the trade-offs in detail.
File Protector Software
Six checks separate a useful file protector from a risky one: it works offline, it explains password recovery, it names the file types it supports, it lists the Windows versions it runs on, it states what happens after the trial, and it uninstalls cleanly.
Read the product page for each of the six before installing. A page that cannot answer one of them leaves a gap you will meet later, usually at the worst time.
File Protection Program
A file protection program runs on your PC, so judge it as software first: which Windows versions it lists, whether it needs administrator rights, and how it uninstalls. The Copy Protect page lists Windows 10, 8 and 7, so test it in a spare Windows 11 installation before relying on it.
Install any new program on a test machine first, keep the installer from the vendor’s own page, and note what it adds to the system tray. A program that locks files should also tell you how to get them back if the program itself is removed.
File Protector
A file protector that handles single files suits a database better than one that locks a whole drive, because the engine needs the surrounding folder, its logs and its temporary files. Protect the file’s folder, keep journals beside it, and leave the system drive alone.
When the choice is between locking one file and locking a folder, choose the folder if the database writes a companion file, and choose the file if it does not.
How to Verify It Worked After You Protect a Database File from Being Copied
Verification needs a second account and a clean machine. Sign in as a standard user, try to open and copy the file, then restore your backup on a spare system. Three passing checks prove that the protection holds and that the data survives it.
In Command Prompt, run icacls on the folder and read the list. If “Users” or “Everyone” still appears, inheritance is still on.
Troubleshooting: Protected Database Files That Misbehave
Most problems after protecting a file come from three causes: a permission that locked out the owner, an encrypted file opened without its key, or a copy separated from its journal. The table maps each symptom to its likely cause and a safe fix.
| Problem | Likely cause | Safe fix |
|---|---|---|
| Access denied for your own account | Inheritance removed without adding yourself | Boot an admin account, take ownership, then grant your account Full control |
| Database will not open after a copy | Journal or -wal file left behind | Copy the pair together, or use the engine’s backup command |
| Prompt for a password you cannot recall | Access or engine password lost | Check saved keys and your password manager; the vendor cannot recover it |
| Restore on a new server fails | Certificate for encrypted backups missing | Restore the certificate and private key first |
| Permissions gone on a USB copy | Drive formatted FAT or exFAT | Reformat the drive to NTFS or encrypt it |
| Protected output will not run on a second PC | Output bound to the prepared device | Re-run the preparation for that device |
How to recover access to a locked database file you own
Start with proof of ownership: sign in as the account that created the file, check the saved BitLocker recovery key, search your password manager and email for the licence message, and contact the software vendor’s support. We do not cover cracking a password you do not hold, because that route exists only for someone else’s file.
The full walkthrough is in our guide to why a copied database file will not open.
Is This Enough? What Else to Do After You Protect a Database File from Being Copied
Protecting the file is half the job. Keep an encrypted backup in a second location, log who connects, and review access every quarter. When you export data to a spreadsheet or PDF, protect those files too, since they leave your control.
Exports deserve their own treatment: see how to lock an Excel file from editing or copying, or how to lock a PDF from being edited or copied. Both cover the difference between a password to open and a password to restrict.
- Backup: keep one encrypted copy off site.
- Monitor: review engine logs for unusual exports.
- Rotate: change keys and passwords after a staff change.
- Revisit: repeat the verification checklist each quarter.
Who Should Use Which Protection Option
The right option depends on the person: a solo freelancer needs permissions and a backup, a small office needs engine accounts and drive encryption, and a trainer who ships video needs bound output. Match the row below to your own situation.
| Reader | Recommended method | Does Copy Protect fit? | Honest alternative |
|---|---|---|---|
| Freelancer with one SQLite file | Owner-only folder and BitLocker | No, database formats are not listed | Encrypted container for the backup |
| Small office with a shared Access file | Move to a server database with accounts | No | Access password as a stopgap |
| Trainer shipping video on USB drives | Bound output per cohort | Yes, for supported video types | Watermarked downloads |
| Consultant sending reports | Locked PDF or bound output | Yes, for supported document types | Rights management service |
Database File Protection FAQ
Fourteen short answers. Filter them by platform or file type.
Limit who can read the file, then encrypt it. Remove read access for accounts that do not need it, turn on drive or database encryption, and hand outsiders an export instead of the live file. Copying is just reading, so the control has to act on who may read.
Yes. Windows permissions, BitLocker on Pro editions, Access database passwords and engine accounts are all free. They stop casual copying and stolen drives. Paid tools add device-bound output for supported media types, which is a different job from locking a live database.
Move the file into a folder only your account can read. In File Explorer, open the folder’s Security tab, remove broad groups and keep your account. That takes about five minutes and blocks other Windows accounts. It does not stop you, an administrator or a program running as you.
Avoid copying a live file mid-write, separating a database from its journal or WAL file, storing the password beside the file, and moving the file to a FAT drive. Each mistake either breaks the copy you want or drops the protection you set.
Test from a second account or machine. Sign in as a standard user, try to open and copy the file, and confirm access is denied. Then restore a backup on a clean system to prove the protected copy still opens with the right key.
No. A file that a person can read can be copied, photographed or recorded in some way. Protection raises the effort and removes the casual route. Plan for deterrence, keep the master file private, and share exports built for the audience.
Encryption scrambles the contents so a copied file is unreadable without a key. Copy protection tries to stop the copy or to make it useless on another device. Encryption suits databases at rest; device-bound copy protection suits media and documents you distribute.
Yes, for supported file types. Copy Protect prepares documents, pictures, audio and video on a USB drive so the output resists casual copying. It does not list database formats. For a drive that holds a database, use drive encryption or a password tool instead.
The methods differ. Windows permissions, BitLocker and Copy Protect apply to Windows; the Copy Protect page lists Windows 10, 8 and 7. On a Mac, FileVault and file permissions play the same roles. Check any tool’s page for your operating system before you buy.
Not with a file permission, and the Copy Protect page does not document expiry. Time limits come from the system around the file: a PostgreSQL role can use VALID UNTIL, and rights management services can expire documents. Pick the layer that owns the account.
Distribute a protected output instead of the raw video file. A device-bound output deters casual copying, and watermarks or accounts add accountability. A screen recorder can still capture playback, so no tool makes video fully uncopyable. See the training video guide for the full method.
Match the control to the threat. Use permissions against other accounts, drive encryption against lost devices, passwords against casual opening, and bound output against redistribution. Start with the question of who can read the file today, then close the widest gap first.
For one file, set an owner-only permission or move it into an encrypted container. Remove inherited access in the file’s Security tab, keep one backup in a separate encrypted location, and test by opening the file from a different account.
Permissions add no noticeable cost. Drive encryption usually adds a small overhead on modern hardware, and page-level database encryption such as SQLCipher reports a modest one. Measure with your own workload before you commit, especially for large databases on older disks.
Go Deeper: Four Guides Around Database File Protection
Each guide owns one question and answers it in full.
Software or built-in permissions?
A side-by-side of what each approach actually stops, with the cases where Windows alone is enough.
Read the guide →Copy won’t open: causes and fixes
Journal files, missing keys and password prompts that make a copied database fail, and the owner-safe repair path.
Read the guide →Keep files from leaving on a USB drive
How FAT drives drop permissions, what to do about it, and how to hand over a drive that resists copying.
Read the guide →Share training videos without free copies
A course-pack method for video and document material, with realistic limits on screen recording.
Read the guide →This guide is published by the NewSoftwares.net team, the developer of Copy Protect. Free and built-in options are covered alongside our own, and the limits are stated where they apply. Questions about the product can go to the developer through the support contact page.
Our Verdict on Stopping Database File Copies
For a live database, use owner-only permissions, drive encryption and engine accounts, and share exports instead of the file. For media you distribute, a device-bound output is worth a trial. No method makes a readable file fully uncopyable, so aim for the casual copier and keep the master private.



