Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
i have a .bak file which gives the following error while restoring.System.data.sqlclient.sqlerror:The path 'E:' has invalid attributes.It needs to be a directory.It must not be hidden,read-only,or on a removable drive.But i verified the directory is not read only.Any one knows how to restore when three files being restored .mdf,.ldf, and sysft.?Please help me.
Is this by chance the CD drive? Or not local to the restoring machine? (UNC path would otherwise be required)If the e: drive from the restore point was the actual path on the backed-up database's server then you might have to use the WITH MOVE. This would be that the full-text catalog in the backup references that location or another that doesn't exist and you can then specify the location to restore to.Steve
steve_r18
Yak Posting Veteran
59 Posts
Posted - 2011-10-05 : 12:18:24
quote:Originally posted by ammuhere
We can't see this image for some reason...Steve
ammuhere
Starting Member
8 Posts
Posted - 2011-10-05 : 12:20:04
ammuhere
Starting Member
8 Posts
Posted - 2011-10-05 : 12:21:09
Please refer this image[url]http://postimage.org/image/2oowmjbpg/[/url]
ammuhere
Starting Member
8 Posts
Posted - 2011-10-05 : 12:23:15
This is the script i had used for restoring.Also E: is not CD or remote drive.
RESTORE DATABASE [new] FROM DISK = N'E:\a\L11.bak' WITH FILE = 1, MOVE N'itest' TO N'E:\a\3.mdf', MOVE N'itest_log' TO N'E:\a\4.ldf', MOVE N'sysft_test' TO N'E:\a', NORECOVERY, NOUNLOAD, REPLACE, STATS = 10