Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Create Backup Device on SQL 2005

Posted on 2008-06-16
4
Medium Priority
?
2,505 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 2000 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

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 this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

688 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