Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

RESTORE DATABASE question
Hi,

In my SQL Server 2000,

RESTORE DATABASE ETCService
FROM TAPE = '\\.\Tape0'

it gave me an error saying I have no right to do the Restore.
What kind of privilege do I need for doing the Restore Database?
Thanks for help.


Jason



Report this thread to moderator Post Follow-up to this message
Old Post
Jason Huang
11-29-06 10:17 AM


Re: RESTORE DATABASE question
It depends on whether the database you want to restore already exist or not.

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www. solidqualitylearning
.com/


"Jason Huang" < JasonHuang8888@hotma
il.com> wrote in message
news:OWpIs%234EHHA.3780@TK2MSFTNGP02.phx.gbl...
> Hi,
>
> In my SQL Server 2000,
>
> RESTORE DATABASE ETCService
>   FROM TAPE = '\\.\Tape0'
>
> it gave me an error saying I have no right to do the Restore.
> What kind of privilege do I need for doing the Restore Database?
> Thanks for help.
>
>
> Jason
>



Report this thread to moderator Post Follow-up to this message
Old Post
Tibor Karaszi
11-29-06 10:17 AM


Re: RESTORE DATABASE question
Thanks Tibor.
It's already existed!

"Tibor Karaszi" <tibor_please.no. email_karaszi@hotmai
l.nomail.com>  撰寫於郵件新聞:uRmHK
J5EH
HA.3932@TK2MSFTNGP02.phx.gbl...
> It depends on whether the database you want to restore already exist or
> not.
>
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www. solidqualitylearning
.com/
>
>
> "Jason Huang" < JasonHuang8888@hotma
il.com> wrote in message
> news:OWpIs%234EHHA.3780@TK2MSFTNGP02.phx.gbl... 
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Jason Huang
11-29-06 10:17 AM


Re: RESTORE DATABASE question
Jason

Are  you a member of sysadmin server role dbcreator fixed server role?
Probably not, am I right?

db_owner fixed database role do not have RESTORE permissions.




"Jason Huang" < JasonHuang8888@hotma
il.com> wrote in message
news:ez1JmU5EHHA.3540@TK2MSFTNGP02.phx.gbl...
> Thanks Tibor.
> It's already existed!
>
> "Tibor Karaszi" <tibor_please.no. email_karaszi@hotmai
l.nomail.com>
>  撰寫於郵件新聞:uRmHK
J5EHHA.3932@TK2MSFTNGP02.phx.gbl... 
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Uri Dimant
11-29-06 10:17 AM


Re: RESTORE DATABASE question
Here's a section from Books Online, RESTORE DATABASE, Permissions:

"If the database being restored does not exist, the user must have CREATE DA
TABASE permissions to be
able to execute RESTORE. If the database exists, RESTORE permissions default
 to members of the
sysadmin and dbcreator fixed server roles and the owner (dbo) of the databas
e (for the FROM
DATABASE_SNAPSHOT option, the database always exists).

RESTORE permissions are given to roles in which membership information is al
ways readily available
to the server. Because fixed database role membership can be checked only wh
en the database is
accessible and undamaged, which is not always the case when RESTORE is execu
ted, members of the
db_owner fixed database role do not have RESTORE permissions."



--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www. solidqualitylearning
.com/


"Jason Huang" < JasonHuang8888@hotma
il.com> wrote in message
news:ez1JmU5EHHA.3540@TK2MSFTNGP02.phx.gbl...
> Thanks Tibor.
> It's already existed!
>
> "Tibor Karaszi" <tibor_please.no. email_karaszi@hotmai
l.nomail.com>
>  撰寫於郵件新聞:uRmHK
J5EHHA.3932@TK2MSFTNGP02.phx.gbl... 
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Tibor Karaszi
11-30-06 12:12 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 08:51 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006