Can't restore database in asp.net

A

ad

I want to backup and restore a database in asp.net.
The backup process is successful and fail when restore with message:

User does not have permission to RESTORE database 'Health'.
RESTORE DATABASE is terminating abnormally

the restore SQL is :
restore database Health from disk =
'D:\Data\ASPNET\Health8\Backup\myback.bck'
and the backup SQL is:
backup database Health to
disk='D:\Data\ASPNET\Health8\Backup\myback.bck' with init

The two state are all execute in asp.net, why the backup one can do, but the
restore on fail with no permission?

I have also test the Restore statement in Enterprise manager, it done
sucessfully.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top