Solved

Temporarly Disable Database - SQL Management Studio Express

Posted on 2007-03-31
7
244 Views
Last Modified: 2007-03-31
I was given a laptop and it has sql server installed and a bunch of DB's from the old user, I dont want to delete the db, I just want to temporarly make them unavailable.

0
Comment
Question by:B_Dorsey
  • 4
  • 3
7 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 250 total points
ID: 18828895
ALTER DATABASE db_name SET OFFLINE;
http://msdn2.microsoft.com/en-us/library/ms174269.aspx
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 18828896
alternative, if you want to completely remove them from the list of database, but keep the files:
detach them (you can attach the database later).
I would prefer the OFFLINE, though...
0
 
LVL 14

Author Comment

by:B_Dorsey
ID: 18828927
so htere is no way to just remove read/write permissions? For example I see the northwnd db in there and can access it...
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 18829002
>so htere is no way to just remove read/write permissions?
you could assign the roles db_denydatareader / db_denydatawriter to all the users in the database...
it depends on what exactly you are trying to achieve...
0
 
LVL 14

Author Comment

by:B_Dorsey
ID: 18829100
i just dont want someone trying to access the data, there are other machines that access the data on that laptop and I wanna stop that and have them approach me to find out what applications are flying around that are dependant on this thing...
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 18829187
so, indeed ensure you put correct logins and appropriate user permissions.
if a login has no mapping in a database (ie a user), that login can do NOTHING in that database.
0
 
LVL 14

Author Comment

by:B_Dorsey
ID: 18829215
sorry for making u go through all this, I think I just want to set offline

thanks for your help

b
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now