need help in query delete

07/15/2016 20:29 Devel37#1
Hello i will delete accounts without chars from my database

i was minding and wrote this code but it dont will work anyone can help me and reedit my code pls

USE SRO_VT_ACCOUNT
DELETE FROM TB_User
WHERE JID NOT EXISTS IN SRO_VT_SHARD_INIT.dbo._Char

:(
07/15/2016 21:34 blapanda#2
The JID from _User has no meaning within the _Char table, the only IDs is the one when the character gets initialized. You have to check 1-2 further tables linking them each other and figuring out which account does not inherit any kind of information character wise.
07/15/2016 21:38 Devel37#3
i wrote JID

can u reedit mine ?
07/16/2016 09:21 EdwardTeach+-#4
Quote:
Originally Posted by Devel37 View Post
i wrote JID

can u reedit mine ?
what you even mean, delete accounts without chars?

you mean, u want to delete the "Characters"
but leave the same "Username" ?
he can login but he found his account " EMPTY NO CHARACTER FOUND "
IS THAT U MEAN?
IF THAT U MEAN, SIMPLE CLEAN "SRO_VT_ACCOUNT"
07/16/2016 09:25 Syloxx#5
DELETE FROM TB_User
WHERE JID NOT EXISTS IN (SELECT JID FROM SRO_VT_SHARD.dbo._Users)

replace columns with the correct name, i dont have a sql server setup yet... (updating to SQL Server 2016)