SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Password in DB attach
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

imrul
Starting Member

Bangladesh
36 Posts

Posted - 10/21/2013 :  02:33:50  Show Profile  Reply with Quote
Is there any way to enforce password in the database attach process?
My purpose is to restrict the user to attach database to a server without correct authentication.

James K
Flowing Fount of Yak Knowledge

3323 Posts

Posted - 10/21/2013 :  10:09:01  Show Profile  Reply with Quote
I don't think there is a way to control attach/detach permissions via passwords. The ability to attach a database requires CREATE DATABASE, CREATE ANY DATABASE, or ALTER ANY DATABASE permission; and once a login has that permission they can attach.

It is an unusual business scenario where end users need to attach and detach databases. Can you describe the business problem that you are trying to solve via this approach? There may be better/more secure alternatives.
Go to Top of Page

imrul
Starting Member

Bangladesh
36 Posts

Posted - 10/22/2013 :  02:00:17  Show Profile  Reply with Quote
You are correct; this is a very unusual problem. The application is desktop base and using SQL 2008 at the backend. Sometimes a user turnoff the SQL service, copy the database files. Then attach the database in a different server, modify data, copy the modified database files back to the server.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000