TAILIEUCHUNG - Back Up and Verify a SQL Server Database

7,2 Back Up và Kiểm tra một cơ sở dữ liệu SQL Server Sao lưu cơ sở dữ liệu có lẽ là một trong những tính năng quan trọng nhất để kết hợp vào ứng dụng của bạn. Nếu bạn để nó lên cho người dùng sử dụng Enterprise Manager để sao lưu cơ sở dữ liệu, sau đó nó sẽ không xảy ra. | Back Up and Verify a SQL Server Database Backing up a database is probably one of the most important features to incorporate into your application. If you leave it up to the user to use the Enterprise Manager to back up the database then it won t happen. You can arrange to have the backup scheduled but sometimes you need to back it up at a moment s notice. This How-To shows you how to create a custom dialog box that will allow the user not only to back up your SQL Server database but also to verify the backup. Your users need to have a method for backing up and verifying their databases without using Enterprise Manager. How do you create a dialog box that would let them back up and verify their databases Technique To accomplish this task you will once again use the SQL-DMO objects. A couple of the new objects you will use are the Backup and BackupDevices objects. You can see some of the additional objects along with the properties and methods that will be used in Table . Table . Additional SQL-DMO Objects Used for Backing Up and Verifying a Database Object Property Method Description Backup Action This property allows you to specify what type of backup that you want to take place. The choices are SQLDMOBackup_Database SQLDMOBackup_Differential SQLDMOBackup_Files and SQLDMOBackup_Log. BackupSetDescription This property allows you to specify a description for the backup set. BackupSetName This property is the Backup set name. Database This property allows you to specify the database to back up. Devices This property specifies the devices you will be backing up to. Initialize This method initializes the Backup process. TruncateLog This property allows you to specify how to handle the truncate log when backing up. SQLBackup This method performs the actual backup. BackupDevices This is a collection of backup devices for a SQL Server. BackupDevice Name Thisis the name of a specific backup device. ReadBackupHeader This method reads in the header information for

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.