Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
hanifikri
Starting Member
14 Posts |
Posted - 2011-03-16 : 05:55:58
|
Hi,I want to shrink the db and i want to prevent/stop the users from accessing to the db. How to do that?Thank you. |
|
Sachin.Nand
2937 Posts |
Posted - 2011-03-16 : 06:28:55
|
It can be done.But why is it that you want to shrink the DB in first place?It is a very very bad idea to shrink the database.PBUH |
 |
|
hanifikri
Starting Member
14 Posts |
Posted - 2011-03-16 : 10:29:33
|
sorry for my mistake. not shrink the db but shrink the log files. currently we have two log files with same the size. only the names are different. so i just want to have 1 log file. in order to do that i want to prevent the users from accessing the db. how can i do that? kindly advise and thank you. |
 |
|
Sachin.Nand
2937 Posts |
Posted - 2011-03-16 : 12:54:01
|
You can set the DB to single user mode.Just of curiosity are you trying to merge those 2 log files ?PBUH |
 |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
X002548
Not Just a Number
15586 Posts |
|
hanifikri
Starting Member
14 Posts |
Posted - 2011-03-17 : 06:06:43
|
Thank you very much.Sachin.Nand, I don't want to merge the files. I just one to remove 1 file. |
 |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|