Monday, January 19, 2009

Encrypt Store Procedure & Trigger di SQL Server





Ini tutorial sederhana banget. gunanya biar orang lain yg bisa buka databasenya tidak bisa melihat isi sintaks T-SQL di Store procedure dan Trigger, biarpun sudah diencrypt T-SQLnya tetap bisa di exec kok :) , have fun :p

create proc [Namastoreprocedure]
--tamabahin ini

with encryption

--------------

as
--perintahnya yg mau di encrypt, misalkan :
select * from msfilm

-------------------------------------------

--untuk exec store procedurenya
exec [Namastoreprocedure]




----- Code'It, Write'It, Share'It, Love'It -----
----------- IT Field It's My Passion -----------

Correct Me If I'am Wrong