Solved

Create Backup Device on SQL 2005

Posted on 2008-06-16
4
2,498 Views
Last Modified: 2008-06-18
Any idea how to create a backup device on SQL 2005 so that all the backup will be stored on the tape ?

When I start the SQL Server Management Studio --> Server Objects --> Backup Devices, right click and select "New BackupDevice ..." . The otpion "Tape" is grayed. Is this the way that I create the backup device to the tape ??

Many thanks.
0
Comment
Question by:AXISHK
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 

Author Comment

by:AXISHK
ID: 21799322
One more add to the question, I have HP LTO Ultirum 3 tape drive attached to the backup system.

Tks
0
 
LVL 3

Expert Comment

by:amritgill
ID: 21799722
sp_addumpdevice [ @devtype = ] 'device_type'
        , [ @logicalname = ] 'logical_name'
        , [ @physicalname = ] 'physical_name'
      [ , { [ @cntrltype = ] controller_type |
          [ @devstatus = ] 'device_status' }
      ]

this a the syntax for adding a device to an instance in sql server..
u can also refere to the msdn lib on the following link
http://msdn.microsoft.com/en-us/library/ms188409.aspx
0
 

Author Comment

by:AXISHK
ID: 21799995
Thanks.

After create the device and access it through SQL Management Studio, it pop up with the following error :

System.Data.SqlClient.SqlError: Cannot open backup device 'sysname(\\.\Tape0)'. Operating system error 32 (The process cannot access the file because it is being used by another process).

Here is the SQL Statement :
sp_addumpdevice @devtype = 'tape', @logicalname='sysname', @physicalname ='\\.\TAPE0'

Any idea ??

Tks.
0
 
LVL 3

Accepted Solution

by:
amritgill earned 500 total points
ID: 21800048
You may want to check startup account of SQL instance has the proper
permission of the tape device. Please change the startup account to local
system to test the situation.
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question