AlexBB
hunchback wrote: |
| 1 - Try executing SSMS as the administrator account. You know, right click - Run as
administrator, then try to do the restore from SSMS
2 - If point 1 did not work, then execute first:
restore headeronly
from disk = ...
This will give you the list of backup sets in that device, the type, etc. Choose the backup set you are interested in (position), let us say 3, then execute:
restore filelistonly
from disk = ...
with file = 3
to see the list (logical and physical) files in that backup set, then apply the "restore database" and use the logical names with the option "move" to move the physical file names to a specific folder.
Let us know how it goes.
AMB
| |
Thank you very much, I appreciate this.
Running as Administrator (which curiously I've done before a number of times, although not with SSMS) resulted in this:
TITLE: Microsoft SQL Server Management Studio Express
------------------------------
Restore failed for Server 'DDMNVT61'. (Microsoft.SqlServer.Express.Smo)
For help, click: http://go.microsoft.com/fwlink ProdName=Microsoft+SQL+Server&ProdVer=9.00.3042.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Restore+Server&LinkId=20476
------------------------------
ADDITIONAL INFORMATION:
System.Data.SqlClient.SqlError: The operating system returned the error '5(Access is denied.)' while attempting 'RestoreContainer::ValidateTargetForCreation' on 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Stoxx\intraDay.mdf'. (Microsoft.SqlServer.Express.Smo)
For help, click: http://go.microsoft.com/fwlink ProdName=Microsoft+SQL+Server&ProdVer=9.00.3042.00&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------
IN other words it is the same stuff.
I want to make sure that I am not creating a wrong impression about Vista. In a week or so with it I simply fell in love with it and will never go back to XP. It is a wonderful OS in many respects. I was forced to installl it when I lost my Internet conn in XP and could not restore it in a week. I had all my dev work in there. Installation was a piece of cake. My network showed up in a blink as before with XP and 2K I had to spend hours troubleshooting it and frequently would just give up. But this security stuff is just too much. It is an overkill. They overdid it.
I actually do have a workaround in mind. What I need is just my stored procedures. I have never done restore before and now I am beginning to realize that the SP's will not be resurrected. Right
I am planning to go back to XP, copy all my SP's and reCREATE then in here (in Vista's SSMS). I actually can live without the data but cannot live without the tables since a number of my apps are trying to dump some records in them and the DB is not there. I get exceptions. My stored procedures automatically create the tables if they are not found and also create other stored procedures to insert and update records. It has been working for a long time.
It is the least of my worries.
What I really need now after I comprehended the threat: I need to understand how I can do RESTORE in case when I really need it. You guys should take care of it please. It is just scary.
I will try the second method and will report back.
Please, find out how those messages could be cancelled. It may be a bug. I do not know. It is not the first time I had to struggle with them. Somehow I could work around them when I copied my folders to Vista and could not attach DBs to SSMS for the same reason. It took two days to find out. Other people helped but this situation is different.
Thanks.