HACKIS - Hacking Internet Security
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Tuyệt Kỹ Đong Giai Chân Kinh (tuyệt Kỹ cua trai)
Store Procedure thêm, xóa, sửa. EmptyThu Aug 23, 2012 5:38 am by Admin

» Tuyệt kỹ cua giai
Store Procedure thêm, xóa, sửa. EmptyThu Aug 23, 2012 5:36 am by Admin

» NETCAT.........
Store Procedure thêm, xóa, sửa. EmptyMon Aug 13, 2012 6:35 am by Admin

» Bảo mật CSDL bằng phương pháp mã hóa.
Store Procedure thêm, xóa, sửa. EmptyTue Apr 17, 2012 10:04 pm by Admin

» Hàm mã hóa MD5 bằng JavaScript
Store Procedure thêm, xóa, sửa. EmptyTue Apr 17, 2012 10:03 pm by Admin

» Giá của món quà
Store Procedure thêm, xóa, sửa. EmptyFri Apr 13, 2012 6:01 am by Admin

» Sẽ chỉ yêu ai?
Store Procedure thêm, xóa, sửa. EmptyFri Apr 13, 2012 6:01 am by Admin

» Cách đọc bảng chữ cái!
Store Procedure thêm, xóa, sửa. EmptyThu Apr 12, 2012 10:37 pm by Admin

» Gắn trojan, keylog, virus vào website, forum
Store Procedure thêm, xóa, sửa. EmptyTue Apr 10, 2012 1:14 am by Admin

Affiliates
free forum


Store Procedure thêm, xóa, sửa.

Go down

Store Procedure thêm, xóa, sửa. Empty Store Procedure thêm, xóa, sửa.

Post  Admin Thu Mar 29, 2012 1:02 am

@Action char(1),
@UserName nvarchar(50),
@Pass nvarchar(50),
@error nvarchar(50) output
as
begin tran
if @Action=’t’
begin
if exists (select UserName from Account where UserName=@UserName)
begin
update Account set Pass=@Pass where UserName=@UserName
if @@ERROR<>0
begin
set @error=N’Sửa Thất Bại’
if @@TRANCOUNT <>0
rollback tran
goto Error
end
else
set @error=N’Sửa Thành Công’
end
else
begin
insert into Account(UserName,Pass) values (@UserName,@Pass)
if @@ERROR<>0
begin
set @error=N’Thêm Thất Bại’
if @@TRANCOUNT<>0
rollback tran
goto Error
end
else
set @error=N’Thêm Thành Công’
end
end
if @Action=’x’
begin
if exists (select UserName from Account where UserName=@UserName)
begin
delete Account where UserName=@UserName
if @@ERROR<>0
begin
set @error=N’Xóa Thất Bại’
if @@TRANCOUNT<>0
rollback tran
goto Error
end
else
set @error=N’Xóa Thành Công’
end
else
set @error=N’Tài Khoản Này Không Tồn Tại’
end
select @error
commit tran
Admin
Admin
Admin

Tổng số bài gửi : 782
Join date : 2009-08-15

https://hackis.forumvi.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum