| |

VerySource

 Forgot password?
 Register
Search
Author: wetboy

| M | My database log is full at once, what should I do?

[Copy link]

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-1-25 13:36:02
| Show all posts
1. Database-> Properties-> Options-> Failure Recovery Model changed to Simple
2. Database-> All Any-> Shrink Database-> File-> Select Log File-> OK
Reply

Use magic Report

1

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

 Author| Post time: 2020-1-27 08:27:01
| Show all posts
1. Database-> Properties-> Options-> Failure Recovery Model changed to Simple
When I changed, there was a prompt saying that the database log or something, I did not see clearly
Then in the second step, the "shrink database" is grayed out.
Reply

Use magic Report

1

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

 Author| Post time: 2020-1-28 19:54:01
| Show all posts
What is the use of that paragraph

I executed the database and it works, but the log has not become smaller.
Reply

Use magic Report

0

Threads

29

Posts

16.00

Credits

Newbie

Rank: 1

Credits
16.00

 China

Post time: 2020-1-29 08:45:01
| Show all posts
Back up the log.After the backup, you can clear the log.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-29 15:27:02
| Show all posts
How do I back up my logs? Let me compare.
Reply

Use magic Report

1

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

 Author| Post time: 2020-1-30 13:54:02
| Show all posts
But my log hasn't become smaller.
Then in the second step, the "shrink database" is grayed out.
Reply

Use magic Report

0

Threads

29

Posts

16.00

Credits

Newbie

Rank: 1

Credits
16.00

 China

Post time: 2020-1-30 15:18:02
| Show all posts
Under program files\mssql\data are all data and log files. Each database has 2 files, one is a data file and the other is a log file. Just look at the extension and you can delete the log file.
Reply

Use magic Report

1

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

 Author| Post time: 2020-1-31 08:45:01
| Show all posts
In other words, log files can be used now, right?
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-1 10:09:01
| Show all posts
Learn
Reply

Use magic Report

0

Threads

43

Posts

29.00

Credits

Newbie

Rank: 1

Credits
29.00

 China

Post time: 2020-2-1 10:54:02
| Show all posts
Learn
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