You are on page 1of 3

Convert database dari SQL Express 2005 ke SQL

Server 2000
04 Mar 2011 Leave a comment
by just2cya in All IT works and info Tags co!y" database" downgrade" menguba#" s$l" s$l
e%!ress 200" s$l server 2000
sebelumnya bikin db baru dulu di s$l server 2000" nda !erlu diisi a!a2 itu dbnya& Terus ikuti
!etunjuk dibawa# ini
Step 1 Generating Scripts for the Database Elements and Structures
1' (ig#t)click over t#e desired *atabase at 200+" ,#oose Tasks and t#e -enerate .cri!ts
/0!tion'&
2' At t#e !o!)u! *ialog 1o% click at t#e Script All Objects in the selected Databases
c#eck bo%" to activate it and t#en ,lick t#e 2e%t 1utton&
3' .et t#e following 4lements to t#e following 5alues
a& .cri!t ,ollation " set to T(64
b& .cri!t *atabase ,reate" set to T(64
c& .cri!t of .7L 5ersion" set to .7L .4(54( 2000
d& .cri!t foreign keys" set to 8AL.4
e& .cri!t Triggers" set to 8AL.4
T#en 9it t#e 2e%t button
4' .elect t#e way t#e generated scri!ts s#ould be saved /T#ere are different selections& T#e
most common one is ,li!board'& 8inally click t#e 2e%t button till you reac# t#e end&
+' ,lick 8inis#
After com!leting t#is !rocedure" we #ave to move to t#e .7L .4(54( 2000 environment&
9ere" by using t#e 7uery Analy:er" we will #ave to run t#e scri!ts t#at were generated using
t#e master database& ,o!y and ;aste t#e scri!t at t#e 7uery Analy:er and run it& After t#at t#e
.tructure of t#e *atabase will be created&
1e careful" t#e .7L .erver 200+ 4dition inserts t#e 5iews in a random !lace t#roug# t#e
scri!t& T#erefore" all t#e scri!ts t#at are referred to t#e 5iews M6.T be moved to t#e end of
t#e scri!t& If t#e 7uery Analy:er s#ows some errors do not be bot#ered& *elete all t#e
elements created from t#e scri!t and after you fi% t#e code run it again&
<*i bagian 1 ini" abis !aste scri!tnya di $uery analy:er" di bagian atas ada =use >!at# n nama
db di s$l 200+?@
itu ganti ama nama database yang di s$l server 2000&
<<ntar !as bagian ke 2" disuru# e%!ort data" itu #arus !ake toolkit
download .7L4A;(BT00LCIT&4A4 dulu di
#tt!DDdownload&microsoft&comDdownloadD8D*D*D8**+EF88)03EE)4+AG)EAA4)
**E43+1+,G40D.7L4A;(BT00LCIT&4A4
abis gitu" diinstall&&
ntar jalankan file dari H;rogram 8ilesHMicrosoft .7L .erverHI0H*T.H1innH*T.Ji:ard&e%e
itu untuk e%!ortDim!ort data& 6ntuk data source nya !ili# &24T framework data !rovider for
s$lserver& 1agian bawa#nya ada banyak settingan
integrated security K true
attac#*b8ilename K diatur ke tem!at file &mdf database 200+
data.ource K &Hs$le%!ress
trus destinationnya tinggal !ili# database yg di s$l server 2000&
Step2 Moving the data from 2005 to 2000
1' After com!leting t#e !revious ste! successfully" moving t#e data follows& (ig#t)click at
t#e 200+ database you used to run t#e !revious ste! and select Tasks and t#en c#oose t#e
4%!ort *ata /o!tion'&
2' 8rom t#e !o!)u! *ialog 1o%" select t#e .ource *b and ,lick at t#e 2e%t 1utton&
3' At t#e ne%t ste! you will #ave to c#oose t#e destination server and t#e destination
*atabase for t#e *ata to be e%!orted& T#en ,lick 2e%t&
4' A List of all t#e .ource *atabase@s 4lements will a!!ear in t#e screen& .elect one by
one all t#e 4lements you wis# to move and for eac# one click at t#e button 4dit Ma!!ings
/Located at t#e bottom rig#t corner of t#e *ialog 1o% just under t#e 4lements list'& A new
*ialog bo% will !o!)u!& .elect t#e *elete rows in *estination Tables o!tion and activate t#e
4nable Identity Insert 0!tion& /(emember to re!eat t#is action for eac# of t#e selected
4lement from t#e list t#at will be moved&
CAUTION!!! A malfunction of t#e .7L .erver 200+ #as been found& 2ot sure w#y" after
multi!le tries I #ave observed t#at w#en I tried to move more t#an twelve 4lements at once"
t#e 4%!ort *ata Ji:ard of .7L .erver 200+ seemed to disable t#e 4nable Identity Insert
0!tion t#at was activated over t#e 4dit Ma!!ings *ialog 1o%& 1ut if t#e number of t#e
selected 4lements is smaller t#an 12 no !roblem seemed to a!!ear&
Step 3 Generating Scripts for the Database oreign !e"s and #riggers
8inally" to successfully finis# t#e downgrade of t#e *atabase" t#e Triggers and t#e 8oreign
Ceys of t#e *1 must be !roduced& T#e !rocedure t#at s#ould be followed is t#e one stated
ne%t
1' (ig#t),lick at t#e .7L 200+ *atabase and .elect from Tasks Menu t#e -enerate
.cri!ts 0!tion&
2' 6sing t#e !o!)u! *ialog 1o% make sure t#at t#e c#eck bo% Script All Objects in the
selected Databases is not enabled and #it t#e 2e%t 1utton&
3' .et all t#e 4lements on t#e List to a 8alse 5alue e%ce!t t#e ones t#at follow
a& Include I8 20T 4AI.T. " set to T(64
b& .cri!t 0wner" set to T(64
c& .cri!t of .7L 5ersion" set to .7L .4(54( 2000
d& .cri!t foreign keys" set to T(64
e& .cri!t Triggers" set to T(64
T#en 9it t#e 2e%t button
4' After finis#ing reading t#e 4lements of t#e *atabase" a new list will a!!ear at t#e
*ialog 1o%& Make sure t#at you select 02LL T94 TA1L4. of t#e *atabase and #it t#e 2e%t
1utton&
+' At t#e screen t#at follows #it t#e .elect All button and t#e 2e%t&
G' .elect t#e way t#e generated scri!ts s#ould be saved /T#ere are different selections& T#e
most common one is ,li!board'& 8inally click t#e 2e%t button till you reac# t#e end&
F' ,lick 8inis# 1utton&
After com!leting t#is !rocedure" we #ave to move to t#e .7L .4(54( 2000 environment&
9ere" by using t#e 7uery Analy:er" we will #ave to run t#e scri!ts t#at were generated using
t#e master database& ,o!y and ;aste t#e scri!t at t#e 7uery Analy:er and run it& After t#at t#e
8oreign Ceys and t#e Triggers of t#e *atabase will be created&
After t#ese ste!s t#e database s#ould be fully functional under t#e .7L .erver 2000 edition&

<<
Mika ada tabel yang tidak ber#asil terco!y dan isinya tidak banyak /tidak sam!ai ratusan ribu
row'" maka bisa dengan klik kanan di database s$l e%!ress 200+ /yang saya coba ini dari
visual studio 200E'" lalu !ili# !ublis# to !rovider" #ilangkan centangan !ada !ili#an scri!t all
objects in t#e selected database" !ili# tables" lalu !ili# table mana yang ingin di!inda#kan"
lanjutkan #ingga ada tam!ilan o!tion& uba# scri!t for target database menjadi s$l server 2000"
lalu ne%t dan finis#&&berikutnya tinggal menjalankan file &s$l yang tela# dibuat tadi !ada
$uery analy:er s$l server 2000&

You might also like