In SQL Server data is stored using two physical files:
(.mdf) extension which contains the data.
(.ldf) extension which contains log.
เราจะไปลดขนาดไฟล์ (.mdf) ด้วยการ Shrink
พอเราจะย้าย คัดลอก หรือเพิ่มพื่นที่ว่างให้ Hardisk บน server ของเราได้เยอะเลยครับ
อ่านเพิ่มเติมได้ที่นี่ครับ
http://www.codeproject.com/Articles/144 ... erver-2005
Shrink Sqlserver 2005 เพื่อลด file size ของ .mdf
Moderators: mindphp, ผู้ดูแลกระดาน
- jataz2
- PHP Super Member
- Posts: 254
- Joined: 22/02/2011 11:48 am
- jataz2
- PHP Super Member
- Posts: 254
- Joined: 22/02/2011 11:48 am
Re: Shrink Sqlserver 2005 เพื่อลด file size ของ .mdf
หรืออีกวิธี คือลบ (.ldf) อันเก่าทิ้งไปเลยก็ได้
Eliminate the Log File Completely
Sometimes, we just do not need the big log file. For example, I have a 40GB log file. I am sure I do not need this log file and want to get rid of it completely to free up the hard drive space. The logic is:
Detach the database
Rename the log file
Attach the database without the log file
Delete the log file
Eliminate the Log File Completely
Sometimes, we just do not need the big log file. For example, I have a 40GB log file. I am sure I do not need this log file and want to get rid of it completely to free up the hard drive space. The logic is:
Detach the database
Rename the log file
Attach the database without the log file
Delete the log file
-
- Similar Topics
- Replies
- Views
- Last post
-
-
ตอน Uploads package File ตรงMaximum upload size ทำยังไงถึงจะขึ้นเป็น
by Chanida Kongduang » 05/10/2017 6:57 pm » in Joomla Development - 1 Replies
- 709 Views
-
Last post by mindphp
06/10/2017 3:47 am
-
-
-
ใครมีcode php แนะนำเกี่ยวกับ การ extract file pdf และ word เป็น text file บ้างคร
by beer_adisorn » 19/11/2011 11:25 am » in Programming - PHP - 4 Replies
- 2935 Views
-
Last post by beer_adisorn
22/11/2011 9:54 pm
-
-
-
Python GUI (Tkinter) : การ Browse file แบบ multiple file จากการกดปุ่ม Button
by benzas00123 » 30/01/2020 5:46 pm » in Python Knowledge - 0 Replies
- 476 Views
-
Last post by benzas00123
30/01/2020 5:46 pm
-
-
-
Python GUI (Tkinter) : การกำหนดนามสกุล File ที่ต้องการจะหาใน Browse file
by benzas00123 » 30/01/2020 6:04 pm » in Python Knowledge - 0 Replies
- 397 Views
-
Last post by benzas00123
30/01/2020 6:04 pm
-
-
-
อยากทราบว่า html5 file api สามารถที่จะ get file version ของไฟล์ .exe ได
by wittawat » 28/07/2014 12:06 pm » in Programming - PHP - 0 Replies
- 1467 Views
-
Last post by wittawat
28/07/2014 12:06 pm
-
-
-
ว่าด้วยเรื่อง VB.net 2005 DataGridViewCheckBoxColumn
by jataz2 » 17/11/2013 4:24 pm » in Programming - C/C++ & java & Python - 0 Replies
- 1465 Views
-
Last post by jataz2
17/11/2013 4:24 pm
-
Who is online
Users browsing this forum: No registered users and 4 guests