Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 31.08.2006, 03:59   #1
srh
Архивный участник
 
Join Date: Aug 2005
Posts: 145
Default [share/sql] clean up account db

i never see here, if exists sorry.
this script delete newerused accounts from lin2db:
Code:
begin tran
delete from user_auth    where exists(select 1 from user_account where user_account.last_login is null and user_account.account=user_auth.account)
delete from user_account    where     user_account.last_login is null 
commit
backup your db before use any script
srh is offline  
Old 31.08.2006, 16:41   #2
aralyon
Архивный участник
 
Join Date: Sep 2005
Posts: 72
Default

It is incomplete, you have to delete record from ssn and user_info as well.
Code:
begin tran
delete from ssn where [name] in (select account from user_account where last_login is null);
delete from user_auth where account in (select account from user_account where last_login is null);
delete from user_info where account in (select account from user_account where last_login is null);
delete from user_account where last_login is null;
commit
aralyon is offline  
Old 31.08.2006, 17:07   #3
kgptzac
Архивный участник
 
Join Date: Jan 2006
Posts: 363
Default

thx for sharing
kgptzac is offline  
Old 31.08.2006, 17:29   #4
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

its not complete even with aralyon addendum..
u need to delete useless chars +skills +items too ;-D
rodier is offline  
Old 31.08.2006, 21:01   #5
aralyon
Архивный участник
 
Join Date: Sep 2005
Posts: 72
Default

Quote:
Originally Posted by rodier View Post
its not complete even with aralyon addendum..
u need to delete useless chars +skills +items too ;-D
Really? In universe I live, there is usually no chars on an account which was never used. Please read whole statement.
aralyon is offline  
Old 11.09.2006, 15:57   #6
Stavr
Архивный участник
 
Join Date: Aug 2006
Posts: 11
Default Region and Clan BBS

sorry - wrong topic... i'm almost dreaming
Stavr is offline  
Old 11.09.2006, 18:41   #7
demon
Архивный участник
 
Join Date: May 2005
Posts: 367
Default

asd asd asd
demon is offline  
Old 17.09.2006, 05:48   #8
Drag
Архивный участник
 
Join Date: Mar 2006
Posts: 241
Default

Quote:
Msg 468, Level 16, State 9, Line 2
Cannot resolve the collation conflict between "Chinese_PRC_CI_AS" and "Korean_Wansung_CI_AS" in the equal to operation.
Msg 468, Level 16, State 9, Line 4
Cannot resolve the collation conflict between "Chinese_PRC_CI_AS" and "Korean_Wansung_CI_AS" in the equal to operation.
Whoot?
I need to check all tables with collation ? :| Dunno wtf ^^
Drag is offline  
Old 17.09.2006, 05:54   #9
hater
Архивный участник
 
Join Date: Aug 2006
Posts: 28
Default

Who ca give SQL for wipe all chars?
hater is offline  
Old 17.09.2006, 06:13   #10
Drag
Архивный участник
 
Join Date: Mar 2006
Posts: 241
Default

wipe all chars?
DELETE FROM user_data
etc xD
or just make new DB

Stay on topic xD
I need help with that error... ^^"
Drag is offline  
Old 17.09.2006, 10:54   #11
hater
Архивный участник
 
Join Date: Aug 2006
Posts: 28
Default

Quote:
DELETE FROM user_data
mm, and what about user skills, items etc?
hater is offline  
Old 17.09.2006, 15:30   #12
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

just delete database lin2world.. then run lin2world sql scripts again.
Phantom2005 is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 19:34.