Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Create Backup Device on SQL 2005

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

963 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