Viciados-HackerBR: Deletando Contas [VHB]
Nome: ZoneMu
Versão:99D+99 New Itens
Experiência:8ki
Drop: 100
Bug Bless:BugBles/Zen
Viciados-HackerBr - Temos Vagas Para Moderadores E Postadores Experientes ! // Curta Nossa Pagina No Facebook No Final Da Pegina E Siga Nosso Site Obrigado !
A Viciados-HackerBR pede para que nossos visitantes leiam as Regras do Chat para que não sejam Banidos [+] Regras[VHB]

Deletando Contas [VHB]


Deletando as contas que não logam no servidor 
1 - Abra o Query Analizer
2 - Selecione a DB MuOnline(la está seliciona a DB master, bem la em cima, do lado de um botão de stop)
3 - Copie o código abaixo
4 - Cole na parte branca(parece até um editor de texto)
5 - aperte F5
6 - Pronto as accs foram deletadas!

CODE
DECLARE @Acc varchar(10), @Chars varchar(10), @test int
select @test = 0
DECLARE LISTA CURSOR LOCAL FOR
SELECT memb___id FROM MEMB_INFO
OPEN LISTA
FETCH NEXT FROM LISTA INTO @Acc
WHILE @@FETCH_STATUS = 0
begin
if (SELECT COUNT(*) FROM Character where AccountID=@Acc) = 0
begin
DELETE from MEMB_INFO where memb___id=@Acc
DELETE from VI_CURR_INFO where memb___id=@Acc
select @test = @test + 1
end
FETCH NEXT FROM LISTA INTO @Acc
end
CLOSE LISTA
DEALLOCATE LISTA
print @test

Esse codigo apagara todas as contas que nao foram acessadas.

0 comentários:

Postar um comentário

Seguidores

Parceiros

Image and video hosting by TinyPic Image and video hosting by TinyPic Image and video hosting by TinyPic Image and video hosting by TinyPic Image and video hosting by TinyPic Image and video hosting by TinyPic Image and video hosting by TinyPic Image and video hosting by TinyPic Image and video hosting by TinyPic Image and video hosting by TinyPic
© Viciados-HackerBr 8.0 - 2011©
Site desenvolvido por
Rafael Silveira
e Cia.