ღონისძიებები
Mar 31, 11 PM - Apr 2, 11 PM
ყველაზე დიდი SQL, Fabric და Power BI სასწავლო ღონისძიება. 31 მარტი – 2 აპრილი. გამოიყენეთ კოდი FABINSIDER 400 დოლარის დაზოგვისთვის.
რეგისტრაციაეს ბრაუზერი აღარ არის მხარდაჭერილი.
გადადით Microsoft Edge-ზე, რათა ისარგებლოთ უახლესი ფუნქციებით, უსაფრთხოების განახლებებითა და ტექნიკური მხარდაჭერით.
Applies to:
SQL Server
This topic describes how to define a logical backup device for a disk file in SQL Server by using SQL Server Management Studio or Transact-SQL. A logical device is a user-defined name that points to a specific physical backup device (a disk file or tape drive). The initialization of the physical device occurs later, when a backup is written to the backup device.
In This Topic
Before you begin:
To define a logical backup device for a disk file, using:
Requires membership in the diskadmin fixed server role.
Requires permission to write to the disk.
After connecting to the appropriate instance of the Microsoft SQL Server Database Engine, in Object Explorer, click the server name to expand the server tree.
Expand Server Objects, and right-click Backup Devices.
Click New Backup Device. The Backup Device dialog box opens.
Enter a device name.
For the destination, click File and specify the full path of the file.
To define the new device, click OK.
To back up to this new device, add it to the Back up to: field in the Back up Database (General) dialog box. For more information, see Create a Full Database Backup (SQL Server).
Connect to the Database Engine.
From the Standard bar, click New Query.
Copy and paste the following example into the query window and click Execute. This example shows how to use sp_addumpdevice to define a logical backup device for a disk file. The example adds the disk backup device named mydiskdump
, with the physical name c:\dump\dump1.bak
.
USE AdventureWorks2022;
GO
EXEC sp_addumpdevice 'disk', 'mydiskdump', 'c:\dump\dump1.bak' ;
GO
BACKUP (Transact-SQL)
Backup Devices (SQL Server)
sys.backup_devices (Transact-SQL)
sp_addumpdevice (Transact-SQL)
sp_dropdevice (Transact-SQL)
Define a Logical Backup Device for a Tape Drive (SQL Server)
View the Properties and Contents of a Logical Backup Device (SQL Server)
ღონისძიებები
Mar 31, 11 PM - Apr 2, 11 PM
ყველაზე დიდი SQL, Fabric და Power BI სასწავლო ღონისძიება. 31 მარტი – 2 აპრილი. გამოიყენეთ კოდი FABINSIDER 400 დოლარის დაზოგვისთვის.
რეგისტრაციატრენინგი
სერტიფიკაცია
Microsoft Certified: Azure Database Administrator Associate - Certifications
Administer an SQL Server database infrastructure for cloud, on-premises and hybrid relational databases using the Microsoft PaaS relational database offerings.
დოკუმენტაცია
Specify disk or tape backup destination - SQL Server
This article shows you how to specify a disk or tape as a backup destination in SQL Server by using SQL Server Management Studio or Transact-SQL.
Backup Devices (SQL Server) - SQL Server
This article describes backup devices for a SQL Server database, including terminology and working with backup devices.
Define logical backup device - tape - SQL Server
This article shows you how to define a logical backup device for a tape drive in SQL Server by using SQL Server Management Studio or Transact-SQL.
View logical backup device contents - SQL Server
Learn how to view the properties and contents of a logical backup device in SQL Server by using SQL Server Management Studio or Transact-SQL.