Suicida Brasil Clan: Deletar Contas
Criando Portais
[Noticias]- Em Breve
[Noticias]- Em Breve
[Noticias]- Em Breve
[Noticias]- Em Breve
[Noticias]- Em Breve
[Noticias]- Em Breve
http://img408.imageshack.us/img408/9421/user193809pic5361211078.jpg Nome: XXXXX
Vers�o: XXXXX
Xp: XXXXX
Site:XXXXXXXXXX

By : SaLaMe

segunda-feira, 14 de dezembro de 2009

Deletar Contas

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