1. Home
VerifiedGuide checked November 2026

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.

  • NewSoftwares.net editorial team
  • Published November 2026
  • Last verified: November 2026
  • 24 min read
Quick answer

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.

At a glance
Applies toSQLite, Access and SQL Server files on Windows 10 and 11
Time needed20 to 40 minutes for the built-in methods
DifficultyModerate; two steps need an administrator account
CostBuilt-in methods are free; one paid tool offers a free trial
Internet neededOnly for downloading tools and reading vendor documentation
Last verifiedNovember 2026
See our top recommendation →
Database file with a lock shield stopping a dashed copy from forming beside itLive database fileUnwanted copy

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.

Pick your path

What do you need help with?

Start with the steps

Go to the step-by-step section, or choose an option above.

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.

Back up first

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.

Diagram: copying is reading a file into memory then writing it out, so control must act at the read stepProgram or userReads the bytesinto memoryWrites them outas a copyControl pointdecide who may read
Copying is two ordinary steps, so a control must act before the read step.

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.

  1. Who can read the bytes? Anyone who can read them can copy them, so narrow this group first.
  2. What do readers receive? Plain contents travel with the copy. Encrypted contents stay useless without the key.
  3. 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

Four stacked layers of database file protection from account rules to bound exports1 Account and engine rulesWho can open the database at all2 File permissionsWho can read the file on this PC3 Disk or file encryptionWhat a stolen or copied file contains4 Bound output for exportsWhere a shared report can run
Layers of database file protection, from account rules to bound exports.

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.

Threat-model quiz: how determined is your copier?

Does anyone who can reach the file have administrator rights?
Could someone plug a USB drive into the machine?
Is the file worth money to a competitor?
Does the file leave the building on laptops or backups?
Would a leak trigger legal or contract duties?

Answer five questions for your score

Most home and small-office files land in the low or moderate band. Answer all five to see yours.

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.

Free does not mean weak

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.

  1. Close the database and make a backup. For SQLite, use the .backup command or VACUUM INTO rather than dragging the file, because a plain copy during a write can be corrupt.
  2. Move the file into a dedicated folder on an NTFS drive, such as C:\Data\Private.
  3. Take ownership if needed. In Properties, Security, Advanced, set yourself as Owner.
  4. Disable inheritance and choose “Remove all inherited permissions”, then add only your account and SYSTEM with Full control.
  5. Turn on drive encryption. On Pro editions open Control Panel, BitLocker Drive Encryption, and save the recovery key somewhere other than this PC.
  6. Add the engine’s own control, for example an Access password or a named SQL Server login.
  7. Test from a second account and confirm access is denied (see the verification section).
Windows Command Prompt: set owner-only access on a folder, run as administrator
icacls "C:\Data\Private" /inheritance:r /grant:r "%USERNAME%":(OI)(CI)F SYSTEM:(OI)(CI)F
icacls "C:\Data\Private"

Before and after: unprotected versus protected folder

Access list

  • Users: Read & execute
  • Authenticated Users: Modify
  • Administrators: Full control

What another account sees

The file opens and copies to a USB drive without any prompt.

Common question

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.

Four protection approaches compared for a database file
ApproachDifficultySecurityCostBest forLimitations
NTFS permissionsLowStops other accountsFreeFiles on your own PCAdministrators can take ownership; lost on FAT drives
Drive or file encryptionLow to mediumStrong against lost or stolen disksFree with BitLocker on ProLaptops, backups, external drivesPlain once unlocked; the key must be stored apart
Engine accounts and rolesMediumStrong for network usersFreeMulti-user databasesDoes nothing for a file copied from disk
Device-bound output (Copy Protect)MediumDeters casual copyingTrial, then paidReports, documents, videoSupported media and document types only; not live databases
Rights management (DRM)HighControls viewing, printing, expiryVaries by serviceDocuments sent to many recipientsNeeds a managed service and recipient accounts
VerdictLayer themEncryption plus accountsMostly freeKeep databases off shared foldersUse 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.

Protection method picker

What are you protecting?
Who might copy it?

Pick both answers for a recommendation

By default we suggest owner-only permissions and drive encryption for a live file on a PC you control.

The Read-Equals-Copy decision table

Starting point by file type and audience
FileOther accounts on the PCPeople on a networkOutside recipients
Live databaseOwner-only permissionsEngine accounts and encryptionDo not send; export instead
Export or videoRead-only copy, master kept elsewhereRestricted shareBound output for supported types
BackupEncrypted driveEncrypted, restricted locationEncrypt, 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.

Distribution scenario selector

USB drive. Format to NTFS if you rely on permissions, and encrypt the drive if you hold the only key. For files that must run on the recipient’s side, use a bound output made for the file type. Test on a second PC before posting the drive.

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

Where an expiry date can live
OptionWhat expiresWho controls itApplies to
Database role with VALID UNTILA login to the databaseThe database administratorPostgreSQL roles
Time-limited share linkAccess to a hosted fileThe storage providerExports and documents
Rights management serviceOpen and print rights on a documentA managed serviceDocuments sent to named people
Bound outputNot documented for Copy ProtectNot applicableCheck the product page
PostgreSQL: let a contractor’s login lapse automatically
ALTER ROLE contractor VALID UNTIL '2026-12-31';

A simple review cycle for time-limited access

  1. Create a named role for each contractor, never a shared login.
  2. Set VALID UNTIL to the contract end date.
  3. Review the list on the first working day of each month.
  4. 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.

Honest limit

Copy protection deters casual copying. It does not stop a determined attacker, and no tool in this guide claims otherwise.

Copy-protection limits checklist

0 of 5 completed

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.

  1. Copying a live file. The SQLite documentation warns that a plain copy taken during a write can be corrupt. Use .backup or VACUUM INTO instead.
  2. Splitting file and journal. A hot rollback journal or a -wal file belongs to its database. Move them together or not at all.
  3. Keeping the key beside the file. A password in a text file in the same folder defeats the encryption.
  4. Using a FAT drive. Permissions disappear on copy, so the protected file arrives open.
  5. 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
Copy Protect start screen listing supported file formats for protected output
The start screen lists the supported file families.

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
Copy Protect product box shown beside the recommendation for distributed files

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

  1. Install and open the program. Accept the defaults and start from the first screen.
  2. Add files or a folder. Pick the exported report or video, not the database itself.
Copy Protect file list after adding an exported report and video to protect
Step 2: files added to the list.

Review the ready list

  1. Check the ready list. The screen shows each file with its estimated size and time, so confirm nothing is missing.
Copy Protect ready list showing files queued with estimated time and size
Step 3: the ready list before output.

Pick the drive and test

  1. Select the destination drive. Check free space first, because the output can be larger than the source.
  2. Test on a second computer. Open the output there, then try to copy it. Keep the unprotected master in a separate encrypted place.
Copy Protect drive selection screen with destination drive and available space
Step 4: choose where the protected output goes.

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.

Copy Protect cost and trial facts
ItemWhat the official page shows
TrialA free trial is offered; limits are not stated as a figure
Full versionSold through the NewSoftwares.net store; price shown at checkout
PlatformWindows 10, 8 and 7
Drive formatsFAT, FAT32 and NTFS
Supported filesDocuments, 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.

Three families of file protection software
FamilyBlocksExample jobDoes not block
Permission managerOther accountsHide a folder from usersAn administrator, a boot disk
Encryption toolReading a stolen copyLock a USB driveA user who knows the password
Bound-output toolCasual duplication of mediaShip a training video on a driveScreen 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.

Verification checklist

0 of 5 completed

Quick check

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, cause and fix
ProblemLikely causeSafe fix
Access denied for your own accountInheritance removed without adding yourselfBoot an admin account, take ownership, then grant your account Full control
Database will not open after a copyJournal or -wal file left behindCopy the pair together, or use the engine’s backup command
Prompt for a password you cannot recallAccess or engine password lostCheck saved keys and your password manager; the vendor cannot recover it
Restore on a new server failsCertificate for encrypted backups missingRestore the certificate and private key first
Permissions gone on a USB copyDrive formatted FAT or exFATReformat the drive to NTFS or encrypt it
Protected output will not run on a second PCOutput bound to the prepared deviceRe-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.

Troubleshooting checklist

0 of 4 completed

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.

  1. Backup: keep one encrypted copy off site.
  2. Monitor: review engine logs for unusual exports.
  3. Rotate: change keys and passwords after a staff change.
  4. 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.

Recommended option by reader
ReaderRecommended methodDoes Copy Protect fit?Honest alternative
Freelancer with one SQLite fileOwner-only folder and BitLockerNo, database formats are not listedEncrypted container for the backup
Small office with a shared Access fileMove to a server database with accountsNoAccess password as a stopgap
Trainer shipping video on USB drivesBound output per cohortYes, for supported video typesWatermarked downloads
Consultant sending reportsLocked PDF or bound outputYes, for supported document typesRights 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.

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.