| |

VerySource

 Forgot password?
 Register
Search
View: 1616|Reply: 12

Hundreds of thousands of rush! SQL database backup and restore!

[Copy link]

2

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-2 21:40:01
| Show all posts |Read mode
I do it like this
 
Database >> All Tasks >> Additional Database

But I only have a .bak backup file. How can I restore this backup?
Reply

Use magic Report

0

Threads

88

Posts

55.00

Credits

Newbie

Rank: 1

Credits
55.00

 China

Post time: 2020-1-2 21:42:01
| Show all posts
Not attached database
You should choose to restore the database
Reply

Use magic Report

2

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-1-2 21:45:01
| Show all posts
However, if you use Restore Database, there is no data file selected. I haven't found where to find the .bak file to restore for a long time. I haven't done SQL and used it urgently. The big brother upstairs can help me, thanks
Reply

Use magic Report

0

Threads

7

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-2 22:21:02
| Show all posts
Choose to restore the database. Then remember to change the database path
Reply

Use magic Report

0

Threads

93

Posts

46.00

Credits

Newbie

Rank: 1

Credits
46.00

 China

Post time: 2020-1-2 23:09:01
| Show all posts
Restore the database, just change the database
Reply

Use magic Report

2

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-1-3 11:27:02
| Show all posts
Failed to gain exclusive access to the database because the database is in use,
Reply

Use magic Report

2

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-1-3 11:33:01
| Show all posts
I just rushed and I didn't finish the reply

Failed to gain exclusive access to the database because the database is in use,
RESTORE DATABASE operation terminal exception

What means?
Reply

Use magic Report

1

Threads

4

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-3 15:00:01
| Show all posts
Restore database, options from device
Reply

Use magic Report

0

Threads

14

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 China

Post time: 2020-1-6 12:00:01
| Show all posts
.bak file is used to restore the database
.mdf file is used to attach the database
Reply

Use magic Report

0

Threads

100

Posts

53.00

Credits

Newbie

Rank: 1

Credits
53.00

 China

Post time: 2020-1-6 13:30:01
| Show all posts
First create a new database with the same name, and then restore it.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list