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 9021903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:22:06+00:00 2026-06-16T05:22:06+00:00

I have an access 2010 application with a SQL Server database. But I need

  • 0

I have an access 2010 application with a SQL Server database.

But I need to do an offline version. So I thought I would create a local SQL Server database on their computers then they can run a script to update their data before they go on the road.

NOTE: There won’t be any sync. The data in offline mode is only for read-only and any changes will be lost.

I tried with Management Studio like this:

enter image description here

But I realized that the data is hard coded instead of doing inserts from selects.

Is there any easy way to create the script?

What I have so far is my pass through query in access to create the backup of my online database.
Then I have my pass through query to restore the backup to the local server.

The only problem is how can I build the connection string for the second query. It’s currently set to this one

ODBC;DRIVER=SQL Server;SERVER=010-068\SQLEXPRESS;UID=marcAndreL;Trusted_Connection=Yes;DATABASE=SMD

but because it’s a different database for everyone, it won’t work.

How can we build a custom connection string?

  • 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-06-16T05:22:08+00:00Added an answer on June 16, 2026 at 5:22 am

    I am using SQL Server Express 2012 and Windows Authentication, so using the answer provided here, I find this works for me:

    Sub TestCon()
    Dim cn As New ADODB.Connection
    
        cn.Open ServerConLocal
    End Sub
    
    Function ServerConLocal()
        ''OleDB Connection
        ServerConLocal = "Provider=sqloledb;Data Source=localhost\SQLEXPRESS;" _
        & "Initial Catalog=Test;Integrated Security=SSPI;"
    End Function
    

    For an ODBC connection string in a Pass-through query, this works for me:

    ODBC;Driver={SQL Server Native Client 11.0};Server=localhost\SQLEXPRESS;Database=test;
    

    Trusted_Connection=yes;

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a MS Access 2010 application that is linked to MS SQL 2008
I have some access applications that connect to a SQL Server database. The applications
I have access to a joomla edition but not the source, and I need
I upgraded an access 97 application to access 2010 When I create a new
We have enabled web access to our TFS 2010 server. We have a set
I have written an application in Delphi 2010 that imports data from one database
I have a problem with access database. I am developing a web application in
I have a MS Access 2010 application with an item table that stores the
Monthly, I need to get new data from our SQL Server business application into
I am making a small Windows application using Visual Studio 2010 and SQL server

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.