Mereset Identity Column di SQL Server

Query untuk mereset identity column pada database SQL Server setelah delete data


Ketika kita telah mengosongkan database menggunakan query delete maka kita harus mengembalikan nilai awal (reset) dari tipe data int yang menggunakan identity column

Berikut adalah query untuk mereset identity column pada database SQL Server

DBCC CHECKIDENT('nama tabel', RESEED, 0)

COMMENTS

Review http://ilmusetitik.blogspot.com/ on alexa.com
Nama

Apache,3,Bisnis Online,1,Blog,1,CSS,1,Framework,1,HTML,1,HTML and CSS,2,Info,2,Javascript,2,Javascript and AJAX,5,linux,2,MySQL,2,Networking,1,Open GL,1,Optimasi Website,7,Pemrograman java,1,Pemrograman web,5,PHP,6,phpMyAdmin,1,SEO,3,SQL Server,5,Xampp,1,
ltr
item
Nanang Gunawan Blog: Mereset Identity Column di SQL Server
Mereset Identity Column di SQL Server
Query untuk mereset identity column pada database SQL Server setelah delete data
https://1.bp.blogspot.com/--4_qoBpclG4/WONP_mHmrNI/AAAAAAAAAuA/GwOPfdAUOxUeUMnil8lfmL_3vV-dlcKAQCLcB/s1600/Mereset%2BIdentity%2BColumn%2Bdi%2BSQL%2BServer.jpg
https://1.bp.blogspot.com/--4_qoBpclG4/WONP_mHmrNI/AAAAAAAAAuA/GwOPfdAUOxUeUMnil8lfmL_3vV-dlcKAQCLcB/s72-c/Mereset%2BIdentity%2BColumn%2Bdi%2BSQL%2BServer.jpg
Nanang Gunawan Blog
http://www.nananggunawan.com/2012/02/mereset-identity-column-di-sql-server.html
http://www.nananggunawan.com/
http://www.nananggunawan.com/
http://www.nananggunawan.com/2012/02/mereset-identity-column-di-sql-server.html
true
4195327445586723627
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy