Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1029835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T12:36:30+00:00 2026-05-16T12:36:30+00:00

I am upsizing the back end of a client’s Access app tomorrow and need

  • 0

I am upsizing the back end of a client’s Access app tomorrow and need to be ready with a plan for a particular problem with this client. The boss needs to be able to take the data file away from the office where the SQL Server is on a regular basis (usually monthly) and run statistical analyses on the data.

I’ve looked at Easiest way to copy an entire SQL server Database from a server to local SQL Express, and the solutions there don’t work in this scenario because:

  1. can’t use a one-time solution (Database Publishing Wizard), as this needs to be scriptable.

  2. can’t use any method that depends on the two computers being networked, as that is not an option — data has to be transferred via USB thumb drive (so, no replication).

  3. can’t use any method that depends on running SQL Server management tools from the server console or from the workstation for the backup.

  4. can’t connect to the SQL Server database directly for the analysis because the data has to be portable to other locations.

What I think I need is some way to call a script that creates a backup file, then copy the result to the USB drive. I then need a second script to copy the backup file from the USB drive and restore it onto the other SQL Server.

The data being transported is read-only (or, any changes made don’t need to get back to the main server), and data won’t be updated in the second location. It’s currently scripted with a plain old batch file to copy the back-end MDB file, and I need something that is as simple for the user.

It can’t have any dependencies on, say, Powershell (of SQL Server Management Studio), because I don’t want it to have to be installed on the computer the user is running the script from (there are a half dozen workstations the script needs to be runnable from, and I don’t want to have to install something on all of those).

I’m going to be setting up the backup agent to create a backup every night, so I could perhaps copy that file without needing to initiate the backup before copying. Thus I might only need to script the restore on the target computer.

Thoughts, suggestions, pointers?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T12:36:31+00:00Added an answer on May 16, 2026 at 12:36 pm

    You should definitely be able to create something like that.

    One part would be a T-SQL CREATE BACKUP script as a .sql script, and execute that from a standard Windows batch (*.bat) or command (*.cmd) file using the sqlcmd command line tool.

    That would be something like this:

    backup.sql

    BACKUP DATABASE YourDatabase
    TO DISK = 'Z:\Backup\YourDatabase.bak'
    WITH FORMAT;
    

    The second part would be a .sql file with a T-SQL RESTORE script, basically reading the data from a given location on disk and restoring it to that SQL Server instance there.

    restore.sql

    RESTORE DATABASE YourDatabase
       FROM AdventureWorks2008R2Backups 
       WITH 
         MOVE 'YourDatabase_Data' TO 'C:\MSSQL\Data\YourDatabase.mdf',
         MOVE 'YourDatabase_Log' TO 'C:\MSSQL\Data\YourDatabase_Log.ldf';
    GO
    

    Of course, you need to adapt those names and paths to your own actual requirements – but that should just give you a hint how to get started with this endeavor.

    To execute one of those .sql script using sqlcmd, you need something like:

    sqlcmd -S (name of server) -U (login) -P (password) -I (name of script file)
    

    e.g.

    sqlcmd -S (local) -U someuser -P top$secret -I backup.sql
    

    Resources:

    • How to create a full database backup
    • T-SQL RESTORE command
    • sqlcmd utility
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am upsizing my back-end from Access 2003 to SQL Server 2008 R2. My
I'm upsizing a backend MS Access database to SQL Server. The front-end client will
I am upsizing an MS Access 2003 app to a SQL Server backend. On
I need to automate the migration from an Access (2003) to an SQL Server
I did the upsizing of access database to sql server. My question is, do
i keep getting an error: The upsizing wizard does not work with this version
I have an old compiled Access Application mde file. This application has linked tables
I'm upsizing my application from MS-Access FE and BE to MS-Access FE and SQL
I'm working on upsizing a suite of MS Access backend databases to SQL Server.
I've used the Access 2007 upsizing wizard to move my files to a SQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.