View Full Version : [share/sql] clean up account db
i never see here, if exists sorry.
this script delete newerused accounts from lin2db:
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 :)
It is incomplete, you have to delete record from ssn and user_info as well.
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
its not complete even with aralyon addendum..
u need to delete useless chars +skills +items too ;-D
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.
sorry - wrong topic... i'm almost dreaming
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 ^^
Who ca give SQL for wipe all chars?
wipe all chars?
DELETE FROM user_data
etc xD
or just make new DB
Stay on topic xD
I need help with that error... ^^"
DELETE FROM user_data
mm, and what about user skills, items etc?
Phantom2005
17.09.2006, 15:30
just delete database lin2world.. then run lin2world sql scripts again.