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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:25:15+00:00 2026-05-25T18:25:15+00:00

I distribute updates to our database in the form of backups With Replace, but

  • 0

I distribute updates to our database in the form of backups “With Replace”, but the users can install it to any location on any hard drive, which means I need to “Exec SP_HelpFile” on it before running “Restore With Move”. But SP_HelpFile requires me to “Use TheDatabase” first, which I can’t do if it’s already stuck in a failed restore. I can’t even run “With Recovery” if I can’t tell it where to restore. Is there any way to use the Master database to get the filenames? Right now my only solution is to delete and reinstall, but I’d like the automated updater to be able to handle it on its own.

UPDATE: Server version is 2005 & 2008

  • 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-25T18:25:15+00:00Added an answer on May 25, 2026 at 6:25 pm

    You should be able to get the path+filename without having to use the database. sp_helpfile uses the local sys.sysfiles but for now at least you can use the catalog view sysaltfiles, still in master for backward compatibility reasons… this is assuming SQL Server 2005+ (please always specify the version of SQL Server you’re using):

    SELECT filename 
        FROM master.sys.sysaltfiles
        WHERE db_id = DB_ID('database name');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

pip install --upgrade distribute throws the following error. Downloading/unpacking distribute from http://pypi.python.org/packages/sourc e/d/distribute/distribute-0.6.25.tar.gz#md5=a690874b9964d958a3200485eb827b1 d
I would like to distribute a program I'm halfway done writing but I'm having
We have a Sql Server 2000 database application that needs to update our applications
We've been needing to implement some geo-location service integration for some of our products.
We need to distribute documents to our partners on a USB key. I've been
I wrote VBA code that updates changes made in Excel to a database (SQL
I am investigating how I can use NuGet to distribute developer frameworks and tools
I have developed an android service. Any android app can use it's API's to
Hi i'm trying to create and distribute an update/patch for my app on app
I am trying to distribute my Outlook Add-In to the rest of the company.

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.