Jump to content
Sign in to follow this  
xcv

Pindah Database

Recommended Posts

akum.. nak tanyer sket.. camner nak pindahkan database dari server sql ke server sql yang lain? sayer dah try main² kat Tools>Backup Database. dah kuar dah fail database sayer. Tapik nak restore tak juper lak.. Camner nak restore balik fail tuh ea?

Share this post


Link to post
Share on other sites

Nak copy DB ke server lain cara paling mudah rasanya ialah gunakan Attach Database.

Copy file MDF dan LDF dari mesin pertama ke mesin kedua. Pada mesin kedua, klik kanan pada folder "Databases" di Enterprise Manager, pilih menu "Attach database", dan pilih MDF file tadi. Pilih nama baru sebagai "Attach as"..

Edited by 1kHz

Share this post


Link to post
Share on other sites

akum.. nak tanyer sket.. camner nak pindahkan database dari server sql ke server sql yang lain? sayer dah try main² kat Tools>Backup Database. dah kuar dah fail database sayer. Tapik nak restore tak juper lak.. Camner nak restore balik fail tuh ea?

mase ko nak backup tuh..ko klik button add kat Destination -> Backup To

pastu pilih yg File Name..taruk aa dbAku.bak ke..

pastu masa nak restore..pilih from device..pastu ko point pada fail dbAku.bak tuh (jangan lupe copy plak)..pastu setel..tapi kalo server ms sql ko yg memula tuh, simpan data kat c , yg server kedua lak simpan kat d, nanti ko kene tuko aa, setting utk mdf,ldf..supaya point ke d..jangan point ke e atau z..

tapi elok gak ko try cara 1kHz tuh..maybe lebih mudah

Edited by nagakeciks

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...