sql server - Restoring SQL backup fails - Access is denied -


solved. see answer (but first see second edit question).

i'm trying restore backup database 1 computer on - thereby copying db, message:

system.data.sqlclient.sqlerror: operating system returned error '5(access denied.)' while attempting 'restorecontainer::validatetargetforcreation' on 'c:\program files\microsoft sql server...'. (microsoft.sqlserver.smoextended)

why this? can create new databases, why not restore? because it's computer? (i read that's usual way copy db shouldn't problem.)

i don't have experience don't rule out obvious explanation.

edit :

i can 'restore' using administrator user account administrator's instance of sql server (i have 2 - 1 administrator, , 1 regular account.) can't either account regular user's instance of sql server.

edit 2 :

it seems there existing files backup's files names (even though changed existing db's name). i'm working on (trying, still unsuccessfully, restore different file names).

the solution make sure database created in mssql11.mssqlserver folder (as opposed mssql10_50.sqlexpress folder). ssms succeeded in 'restoring' database.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -