Oleh: denysutani | April 23, 2009

Backup Database SQL Server 2000 dengan Visual Basic 2005

Kebetulan ketika sedang jenuh mengerjakan program, saya jadi ingin menambahkan fitur backup database.

Berikut snippet codenya

Dim bdi As New SMOObject.BackupDeviceItem
bdi.Name = “backup.bak”
bdi.DeviceType = SMOObject.DeviceType.File
backup = New SMOObject.Backup
backup.Database = “Database”
backup.Devices.Add(bdi)
backup.Initialize = True
Dim server As New SMOObject.Server(“Server”)
backup.SqlBackup(server)


Responses

  1. perlu g melakukan backup pada program dengan menggunakan database sql server


Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

Kategori

%d blogger menyukai ini: