News:

Selamat datang di Forum Orisinil!

Main Menu

SQL Server Performance Tips: Rebuilding Indexes

Started by Yusuf, June 21, 2010, 09:32:24 AM

Previous topic - Next topic

red_dr4gon7

Ya iyalah.. Wong nama database nya aja gak dirubah gmn mau eksekusi, hahaha..  ;D  :D

zurigh

tutornya gmn gan ??? ???
yg luengkap biar yg gaptek ky sy bs coba  :D :D

H2H MURAH TRX Wushh..Wushh..
OtomaX : Versi Tiket
OID : ORI
Backup inet & PLN : Hadirr
CS Ready 08:00 s/d 22:00 NO BISU NO OFFLINE

AE_Reload

Quote from: red_dr4gon7 on June 26, 2010, 11:38:13 PM
Ya iyalah.. Wong nama database nya aja gak dirubah gmn mau eksekusi, hahaha..  ;D  :D
udh di rubah jg sama bos,  ;D ;D

kasih contoh dong

fadlyfayruz

Quote from: zurigh on June 26, 2010, 11:57:15 PM
tutornya gmn gan ??? ???
yg luengkap biar yg gaptek ky sy bs coba  :D :D
1. buka mssql studionya
2. klik new query di pojok kiri atas.
3. nah copy kode ini

QuoteUSE otomax --Enter the name of the database you want to reindex

DECLARE @TableName varchar(255)

DECLARE TableCursor CURSOR FOR
SELECT table_name FROM information_schema.tables
WHERE table_type = 'base table'

OPEN TableCursor

FETCH NEXT FROM TableCursor INTO @TableName
WHILE @@FETCH_STATUS = 0
BEGIN
DBCC DBREINDEX(@TableName,' ',90)
FETCH NEXT FROM TableCursor INTO @TableName
END

CLOSE TableCursor

DEALLOCATE TableCursor

lalu paste di mssql studio..
itu database namenya diganti sesuai nama DB juragan.. (standardnya sih otomax kan? )
lalu klik execute..
tinggal tunggu deh...

NB : Pastikan otomax, webreport (jika ada) pokoknya semua aplikasi yang mengakses database itu (kecuali mssql studio) di close dulu..

Goodluck  ;D
Webreport : 🌎 http://report.dflash.co.id 🌎
CHANNEL : https://t.me/dflashpart2
Telegram CS: @csodflash
CALL CENTER : 📞0897 33000 87 PSTN: ☎ 021-29868031
Alamat : 🏤 Jl. Sarikaya 1 No. 225, Pancoran Mas. Depok 🏤

farhancellular

DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.


berhasilkah klo hasilnya begini???
support by:
Otomax Advanced+otomax standart 10terminal
OID: c0d59f87f5ccae5d68847190c4712e9b
OID: c9a5c46c20d1070054c47dcf4c5eaf00
http://www.farhancellular.com

deydi

Quote from: fadlyfayruz on June 27, 2010, 12:14:37 AM
Quote from: zurigh on June 26, 2010, 11:57:15 PM
tutornya gmn gan ??? ???
yg luengkap biar yg gaptek ky sy bs coba  :D :D
1. buka mssql studionya
2. klik new query di pojok kiri atas.
3. nah copy kode ini

QuoteUSE otomax --Enter the name of the database you want to reindex

DECLARE @TableName varchar(255)

DECLARE TableCursor CURSOR FOR
SELECT table_name FROM information_schema.tables
WHERE table_type = 'base table'

OPEN TableCursor

FETCH NEXT FROM TableCursor INTO @TableName
WHILE @@FETCH_STATUS = 0
BEGIN
DBCC DBREINDEX(@TableName,' ',90)
FETCH NEXT FROM TableCursor INTO @TableName
END

CLOSE TableCursor

DEALLOCATE TableCursor

lalu paste di mssql studio..
itu database namenya diganti sesuai nama DB juragan.. (standardnya sih otomax kan? )
lalu klik execute..
tinggal tunggu deh...

NB : Pastikan otomax, webreport (jika ada) pokoknya semua aplikasi yang mengakses database itu (kecuali mssql studio) di close dulu..

Goodluck  ;D

setelah di coba hasilnya seperti ini :

DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.


apakah hasil diatas kita save atau diabaikan saja?
http://www.dmtronik.com
http://www.manadowebhost.com
YM : dmtronik_cs, cs_dmtronik, otomax_manado

Yusuf

#26
Quote from: farhancellular on June 27, 2010, 02:52:49 AM
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.


berhasilkah klo hasilnya begini???

itu berhasil bos.

centerpulsa

SAYA uda coba seperti nya mmg agak cepat pada saat membuka otomax nya,hihihihi
OTOMAX ULTIMATE 3.8.2                 
IRS V8 IN LINUX SERVER
@Intel Xeon E3-1225v5 RAM 16GB
OS LINUX UBUNTU SERVER 14.04
TELEGRAM @DENICEN

zurigh

Quote from: fadlyfayruz on June 27, 2010, 12:14:37 AM
Quote from: zurigh on June 26, 2010, 11:57:15 PM
tutornya gmn gan ??? ???
yg luengkap biar yg gaptek ky sy bs coba  :D :D
1. buka mssql studionya
2. klik new query di pojok kiri atas.
3. nah copy kode ini

QuoteUSE otomax --Enter the name of the database you want to reindex

DECLARE @TableName varchar(255)

DECLARE TableCursor CURSOR FOR
SELECT table_name FROM information_schema.tables
WHERE table_type = 'base table'

OPEN TableCursor

FETCH NEXT FROM TableCursor INTO @TableName
WHILE @@FETCH_STATUS = 0
BEGIN
DBCC DBREINDEX(@TableName,' ',90)
FETCH NEXT FROM TableCursor INTO @TableName
END

CLOSE TableCursor

DEALLOCATE TableCursor

lalu paste di mssql studio..
itu database namenya diganti sesuai nama DB juragan.. (standardnya sih otomax kan? )
lalu klik execute..
tinggal tunggu deh...

NB : Pastikan otomax, webreport (jika ada) pokoknya semua aplikasi yang mengakses database itu (kecuali mssql studio) di close dulu..

Goodluck  ;D

tinggal testi kalo gini.. hatur tengkyu om bajay  :-* :-*

H2H MURAH TRX Wushh..Wushh..
OtomaX : Versi Tiket
OID : ORI
Backup inet & PLN : Hadirr
CS Ready 08:00 s/d 22:00 NO BISU NO OFFLINE

zurigh

Quote from: VIOLET CELLULAR on June 26, 2010, 10:22:49 PM
MANTAB berasa banget .....
thxs big boss

yg paling berasa dimana nya gan ??? ??? ;D ;D

H2H MURAH TRX Wushh..Wushh..
OtomaX : Versi Tiket
OID : ORI
Backup inet & PLN : Hadirr
CS Ready 08:00 s/d 22:00 NO BISU NO OFFLINE

spiderbooo

 ;D iya nih bos,yg berasa banget dimananya sih..?
Kl saya,berhubung baru,jd database masih sedikit..waktu blm di rebuilding,ukuran database sekitar 70MB..setelah di rebuilding,kok jadi 90MB ya..?

zurigh

ayooo siapa yg bisa kasi tau yg paling berasa di bagian yg mana ;D :D :D

H2H MURAH TRX Wushh..Wushh..
OtomaX : Versi Tiket
OID : ORI
Backup inet & PLN : Hadirr
CS Ready 08:00 s/d 22:00 NO BISU NO OFFLINE

VIOLET CELLULAR

Quote from: zurigh on June 30, 2010, 11:45:53 PM
Quote from: VIOLET CELLULAR on June 26, 2010, 10:22:49 PM
MANTAB berasa banget .....
thxs big boss

yg paling berasa dimana nya gan ??? ??? ;D ;D
paling bersa klu kita udah diujung tanduk oowwwwwhhhhh sungguh nikmat MANTAB  ;D ;D ;D ;D

zurigh

Quote from: VIOLET CELLULAR on July 04, 2010, 10:53:52 AM
Quote from: zurigh on June 30, 2010, 11:45:53 PM
Quote from: VIOLET CELLULAR on June 26, 2010, 10:22:49 PM
MANTAB berasa banget .....
thxs big boss

yg paling berasa dimana nya gan ??? ??? ;D ;D
paling bersa klu kita udah diujung tanduk oowwwwwhhhhh sungguh nikmat MANTAB  ;D ;D ;D ;D

malah bnr2 kesitu jwbanya :D :D

H2H MURAH TRX Wushh..Wushh..
OtomaX : Versi Tiket
OID : ORI
Backup inet & PLN : Hadirr
CS Ready 08:00 s/d 22:00 NO BISU NO OFFLINE

Yusuf

Quote from: spiderbooo on July 03, 2010, 05:23:23 PM
;D iya nih bos,yg berasa banget dimananya sih..?
Kl saya,berhubung baru,jd database masih sedikit..waktu blm di rebuilding,ukuran database sekitar 70MB..setelah di rebuilding,kok jadi 90MB ya..?

dishrink aja bos... ada menunya di sql studio...

zurigh

Quotedishrink aja bos... ada menunya di sql studio...

kalo di shrink nya di tab menghapus data sama ga  ???

H2H MURAH TRX Wushh..Wushh..
OtomaX : Versi Tiket
OID : ORI
Backup inet & PLN : Hadirr
CS Ready 08:00 s/d 22:00 NO BISU NO OFFLINE

titanium_ponsel

kok punya sy respon nya begini ya???

DBCC execution completed. If DBCC printed error messages, contact your system administrator.
The statement has been terminated.
Msg 1105, Level 17, State 2, Line 14
Could not allocate space for object 'dbo.SORT temporary run storage:  458229543075840' in database 'Otomax' because the 'PRIMARY' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.

BOMB

POWERED BY HAZA PULSA

falcon

#38
Untuk melakukan Shrink via SQL
otomax>Tasks>Shrink...    Pada SQL Studio Express ada 2 pilihan Yaitu database sama file dan yang menjadi pertanyaan saya apakah ke-2 pilihan tersebut yg dilakukan apa salah satu aja............ ??? ??? ???
FFmax KOMPUTER
Jl. Raya Karangsuko 28 Pagelaran Kab. Malang
Tlp: 081555848666, 081334888555 PIN 265DE8E5
OTOMAX SUPORT

epro reload

Nyimak aj aahh... db ku masih dikit.... belom banyak kaya konco2 disini.... jadi malu... :-\ :-\ :-\ :-\
Office : Jl.Bungur 2 No.44B Rt 10 Rw 06, Jak-tim
Distro : Kp. Raganis, Cintamanik Bogor
WA : 0857-7595-3527