Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server
You last visited: Today at 00:32

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



need help in query delete

Discussion on need help in query delete within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2008
Posts: 90
Received Thanks: 4
need help in query delete

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

Devel37 is offline  
Old 07/15/2016, 21:34   #2
 
blapanda's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 1,860
Received Thanks: 760
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.
blapanda is offline  
Old 07/15/2016, 21:38   #3
 
elite*gold: 0
Join Date: Apr 2008
Posts: 90
Received Thanks: 4
i wrote JID

can u reedit mine ?
Devel37 is offline  
Old 07/16/2016, 09:21   #4
 
elite*gold: 0
Join Date: Feb 2016
Posts: 652
Received Thanks: 342
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"
EdwardTeach+- is offline  
Old 07/16/2016, 09:25   #5
 
Syloxx's Avatar
 
elite*gold: 56
Join Date: Oct 2013
Posts: 1,165
Received Thanks: 774
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)
Syloxx is offline  
Reply


Similar Threads Similar Threads
Need Query Delete Gold From all player
04/29/2016 - SRO Private Server - 4 Replies
i Need Query Delete Gold From all player any one know Code?
[Release][QUERY] Delete All Inactive Accounts
04/11/2016 - SRO PServer Guides & Releases - 3 Replies
---removed---
Query delete oldest account
03/06/2016 - SRO Private Server - 8 Replies
Help me! hello I want a query that deletes oldest accounts
Help Query Code Char delete
11/17/2013 - SRO Private Server - 6 Replies
hi guys. my db have char delete bug.7500 account waiting delete. this codes only 1x account deleted. i dont want 7500 account manuel delete.Anyone help me query code?. DELETE FROM _InventoryForAvatar WHERE charid = '81935' DELETE FROM _Inventory WHERE charid = '81935' DELETE FROM _CharSkillMastery WHERE charid = '81935' DELETE FROM _CharSkill WHERE charid = '81935' DELETE FROM _CharTrijob WHERE charid = '81935'



All times are GMT +1. The time now is 00:32.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.