Groups | Blog | Home
all groups > sql server msde > february 2007 >

sql server msde : backups OK in MSDE2000 but won't work in SQLexpress


quilkin
2/19/2007 8:32:02 AM
I'm migrating our app from VS2003/MSDE2000 to VS2005/SQLexpress. Generally no
problems, but the backup of database always fails.
The backup command is
"BACKUP DATABASE icespy5 TO DISK='C:\testbackup'"
I get:
"Cannot open backup device 'C:\testbackup'. Operating system error 5(error not
found). BACKUP DATABASE is terminating abnormally."
The same command works fine with the MSDE database. I have tried other
backup destinations but with no success. I have full admin rights; backup
fails in both debug and release environments.

quilkin
2/19/2007 11:10:03 AM
Evidently permissions are not granted! I can back up to the folder where the
..mdf file is stored, so that will be fine, thanks. However it would be useful
to know how to grant SQL permission to an alternative folder.

Thanks for your help.

[quoted text, click to view]
Jeff NO[at]SPAM Check Point Software
2/19/2007 1:02:35 PM
quilkin,

Try changing SQL service to log in as a Local System instead of a Local =
or Network Service

--=20

Jeff=20
Check Point Software

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D

You must be using Outlook Express/Windows Mail or some other type of =
newsgroup reader to
see and download the file attachment(s). If you are not using a reader, =
follow
the link below to setup Outlook Express. Click on "Open with =
newsreader"
under the MS Retail Management System on the right.

http://tinyurl.com/75bgz
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D

[quoted text, click to view]
Evidently permissions are not granted! I can back up to the folder =
where the=20
.mdf file is stored, so that will be fine, thanks. However it would be =
useful=20
to know how to grant SQL permission to an alternative folder.

Thanks for your help.

[quoted text, click to view]
Andrea Montanari
2/19/2007 6:16:18 PM
hi,
[quoted text, click to view]

please verify the Windows account the SQLExpress instance is running on has
been granted adeguate NTFS permissions on the destination path..
--
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz http://italy.mvps.org
DbaMgr2k ver 0.21.0 - DbaMgr ver 0.65.0 and further SQL Tools
--------- remove DMO to reply

Andrea Montanari
2/20/2007 12:00:00 AM
hi,
[quoted text, click to view]

or just dont :D:D Local System is usually to much for the requirements...
this account has to much permissions...
use the os window features... navigate to the folder you are dealing with,
rx click, properties.. Security tab.. add the account running the SQLExpress
instance to the list and define the appropriate permissions..
http://msdn2.microsoft.com/en-us/library/ms143504.aspx#Review_NT_rights
--
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz http://italy.mvps.org
DbaMgr2k ver 0.21.0 - DbaMgr ver 0.65.0 and further SQL Tools
--------- remove DMO to reply

AddThis Social Bookmark Button