backup permissions? device error or device offline

backup permissions? device error or device offline

Post by Sebasti » Fri, 26 Oct 2001 01:15:05



Hello,
I new to SQL server, and cannot figure how to resolve the following:
SQL-DMO (ODBC error 42000) Device error or device offline. Cannot open
Backup device 'D:\SQL Backups\pubs.bak'
I am using enterprise manager SQL2000 on a Windows NT 4.0 workstation,
and am attempting to backup a database using SQL*Server 2000 on a
remote Win 2000 server.
"D:\SQL Backups" does exist on the remote server, and the lan
administrator created a share for it (named  \\servername\sqlbu ), so
that I can copy the backups to my local development server.
I think the problems lies because he removed all permissions to the
shared backup folder, other than my \\domain\ntloginname and the
domain administrators.

I recall reading in Neil Pike's FAQ that SQL server as default runs
under some local name that does not have permission to access shares.
Does this apply even to "local" shared folders?

Also, what is the exact NT name under which SQL server runs, and if I
add permissions for this username to the shared folder, should
everything work OK?

Thanks in advance
Sebastian

 
 
 

backup permissions? device error or device offline

Post by Dan Guzma » Fri, 26 Oct 2001 12:28:15


The remote SQL Server service account needs permissions to the folder.  You
can view/change the account in Enterprise Manager under SQL
Server\Security\Startup Account.

Hope this helps.

-----------------------
SQL FAQ links (courtesy  Neil Pike):

 http://forumsb.compuserve.com/gvforums/UK/default.asp?SRV=MSDevApps
 (faqxxx.zip in lib 7)
 or www.ntfaq.com/Articles/Index.cfm?DepartmentID=800
 or www.sqlserverfaq.com
 or www.mssqlserver.com/faq
-----------------------


Quote:> Hello,
> I new to SQL server, and cannot figure how to resolve the following:
> SQL-DMO (ODBC error 42000) Device error or device offline. Cannot open
> Backup device 'D:\SQL Backups\pubs.bak'
> I am using enterprise manager SQL2000 on a Windows NT 4.0 workstation,
> and am attempting to backup a database using SQL*Server 2000 on a
> remote Win 2000 server.
> "D:\SQL Backups" does exist on the remote server, and the lan
> administrator created a share for it (named  \\servername\sqlbu ), so
> that I can copy the backups to my local development server.
> I think the problems lies because he removed all permissions to the
> shared backup folder, other than my \\domain\ntloginname and the
> domain administrators.

> I recall reading in Neil Pike's FAQ that SQL server as default runs
> under some local name that does not have permission to access shares.
> Does this apply even to "local" shared folders?

> Also, what is the exact NT name under which SQL server runs, and if I
> add permissions for this username to the shared folder, should
> everything work OK?

> Thanks in advance
> Sebastian


 
 
 

backup permissions? device error or device offline

Post by Sebasti » Sun, 28 Oct 2001 01:04:48


Thanks for the suggestion - now I can remotely backup to the shared drive!
( My NT admin added permissions to the share for SYSTEM and SQLADMIN accounts)

> The remote SQL Server service account needs permissions to the folder.  You
> can view/change the account in Enterprise Manager under SQL
> Server\Security\Startup Account.

> Hope this helps.

> -----------------------
> SQL FAQ links (courtesy  Neil Pike):

>  http://forumsb.compuserve.com/gvforums/UK/default.asp?SRV=MSDevApps
>  (faqxxx.zip in lib 7)
>  or www.ntfaq.com/Articles/Index.cfm?DepartmentID=800
>  or www.sqlserverfaq.com
>  or www.mssqlserver.com/faq
> -----------------------



> > Hello,
> > I new to SQL server, and cannot figure how to resolve the following:
> > SQL-DMO (ODBC error 42000) Device error or device offline. Cannot open
> > Backup device 'D:\SQL Backups\pubs.bak'
> > I am using enterprise manager SQL2000 on a Windows NT 4.0 workstation,
> > and am attempting to backup a database using SQL*Server 2000 on a
> > remote Win 2000 server.
> > "D:\SQL Backups" does exist on the remote server, and the lan
> > administrator created a share for it (named  \\servername\sqlbu ), so
> > that I can copy the backups to my local development server.
> > I think the problems lies because he removed all permissions to the
> > shared backup folder, other than my \\domain\ntloginname and the
> > domain administrators.

> > I recall reading in Neil Pike's FAQ that SQL server as default runs
> > under some local name that does not have permission to access shares.
> > Does this apply even to "local" shared folders?

> > Also, what is the exact NT name under which SQL server runs, and if I
> > add permissions for this username to the shared folder, should
> > everything work OK?

> > Thanks in advance
> > Sebastian

 
 
 

backup permissions? device error or device offline

Post by Stride » Thu, 01 Nov 2001 22:41:17



Quote:> Hello,
> I new to SQL server, and cannot figure how to resolve the following:
> SQL-DMO (ODBC error 42000) Device error or device offline. Cannot open
> Backup device 'D:\SQL Backups\pubs.bak'
> I am using enterprise manager SQL2000 on a Windows NT 4.0 workstation,
> and am attempting to backup a database using SQL*Server 2000 on a
> remote Win 2000 server.
> "D:\SQL Backups" does exist on the remote server, and the lan
> administrator created a share for it (named  \\servername\sqlbu ), so
> that I can copy the backups to my local development server.
> I think the problems lies because he removed all permissions to the
> shared backup folder, other than my \\domain\ntloginname and the
> domain administrators.

> I recall reading in Neil Pike's FAQ that SQL server as default runs
> under some local name that does not have permission to access shares.
> Does this apply even to "local" shared folders?

> Also, what is the exact NT name under which SQL server runs, and if I
> add permissions for this username to the shared folder, should
> everything work OK?

Normally under local system account.  You have to go into services and tell
it to run under a domain account with the proper permissions to do what you
want.

- Show quoted text -

Quote:> Thanks in advance
> Sebastian

 
 
 

1. Backup error - Can't open dump device or device off line

I am currently running SQL Server 6.5  on Window NT (sp3).  Whenever I
try to schedule a backup to run automatically, I get the error
message:

Can't open dump device.  Device error or device off line.  Please
consult the SQL Server error log for more details (message 3201).

When I run the backup manually (instead of scheduling the backup - run
it at through the Backup/Restore screen), the backup works fine.

Is this problem related to the rights assigned to my SQL executive
account?  If so, what rights does this account need?  If not, any
ideas what the problem might be?

Thanks,

Andrea Ballard
Database Administrator/Application Programmer
Premier Service Systems, Inc.

2. pgsql/ /Tag: /REL7_1_STABLE /HISTORY oc/src/sg ...

3. Backup failing?? (device offline)

4. jdbc &sql server

5. SQL 7.0 - backup device offline

6. BCP into mysql?

7. Restore from database device not backup device

8. Understanding Backup Devices and Temporary Bkp devices

9. DISK DEVICE vs TAPE DEVICE BACKUP

10. SQL 7 - Dumping Devices or creating backup device on a Network Drive

11. Device Offline ERROR

12. Restore gives device-offline error