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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:29:34+00:00 2026-05-30T04:29:34+00:00

I am trying to restore SQL server DB, replacing the existing one but donot

  • 0

I am trying to restore SQL server DB, replacing the existing one but donot know how to do it.
My purpose is to restore the backup file selected by user, no matter if file with this name is already attached to the server or not. If it is there, it should be replaced by the new one.

Could any body give me vb.net code for it?

Thanks

  • 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-30T04:29:35+00:00Added an answer on May 30, 2026 at 4:29 am

    That’s easy and hard.

    Have you worked out what the sql is?

    Are you restoring the entire back up or just a number of dbs out of it.

    Do you want to sanity check it at all?

    How are you going to deal with sql server’s service account not having permission to see the file?

    What about those using the database when it’s requested.

    Do you want to show progress as it restores?

    Are there other considerations, emailing, permissions, MSMQ, replication….
    Which sql server versions are you coping with?

    If you aren’t going to do this properly don’t bother,m leave it the their IT / DBA people. The more hand holding you want to do, the more the scope will creep…

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

Sidebar

Related Questions

I am trying to restore a backup file to SQL Server 2008. I am
I'm trying to restore a database (SQL SERVER 2008) from a backup in a
I was trying to restore a backup but I kept getting OS error 32
I am trying to restore a DB using an SQL script, but things foreign
I'm trying to write a wrapper to help our customers restore a SQL Server
I'm trying to restore a database from an sql file through phpmyadmin import function.
Running sql server 2005 I have database A. I am trying to restore from
I was trying to backup all my SQL Server databases and came across the
I'm trying to move a database from one SQL Server database running on one
I am trying to restore a database in my sql server 2005 express edition.

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.