Register for your free account! | Forgot your password?

You last visited: Today at 06:22

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

Advertisement



[Help] SQL Query

Discussion on [Help] SQL Query within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2010
Posts: 177
Received Thanks: 11
[Help] SQL Query

i used this query to fix problem, that mobs don't spawn
but it missed up my npc's places. new uniques places added. and reseted it to the basic DB.

here's the query i want to reverse it, or disable it.
NOTE: i can't restore the DB.


here's the query
Code:
DELETE FROM [SRO_VT_SHARD ].[dbo].[Tab_RefNest] 
USE [SRO_VT_SHARD]
GO
BULK INSERT Tab_RefNest FROM 'C:\RefNEst.txt' WITH (FIELDTERMINATOR = '\t')
Little Messi is offline  
Old 07/26/2014, 15:34   #2
 
Snow*'s Avatar
 
elite*gold: 1
Join Date: Nov 2011
Posts: 2,532
Received Thanks: 1,439
Different _RefObjCommon ID's
Snow* is offline  
Old 07/26/2014, 21:04   #3
 
elite*gold: 0
Join Date: Mar 2010
Posts: 177
Received Thanks: 11
Quote:
Originally Posted by SnowStorm1 View Post
Different _RefObjCommon ID's
and how to get it back like the old _RefNest of my db ??
Little Messi is offline  
Old 07/27/2014, 00:28   #4
 
Royalblade*'s Avatar
 
elite*gold: 85
Join Date: Feb 2014
Posts: 1,055
Received Thanks: 1,643
Look.

DELETE FROM [SRO_VT_SHARD ].[dbo].[Tab_RefNest]

Do you see the first word? It says DELETE. You DELETED something. Forget about getting it back again.
Royalblade* is offline  
Old 07/27/2014, 00:54   #5
 
Zodiao's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 748
Received Thanks: 227
What you can do is:
1. TRUNCATE TABLE SRO_VT_SHARD.dbo.Tab_RefNest

2. Restore your database(Nearest backup) to a new database (For ex: SRO_VT_SHARD1)

3. Select * FROM SRO_VT_SHARD1.dbo.Tab_RefNest

4. Copy the contents you have copied to SRO_VT_SHARD.dbo.Tab_RefNest.

Note: Create a database backup before you do any of this as it's not guranteed.

Good luck
Zodiao is offline  
Thanks
1 User
Old 07/27/2014, 11:30   #6
 
Syloxx's Avatar
 
elite*gold: 56
Join Date: Oct 2013
Posts: 1,165
Received Thanks: 774
Quote:
Originally Posted by Sir*EviL View Post
What you can do is:
1. TRUNCATE TABLE SRO_VT_SHARD.dbo.Tab_RefNest

2. Restore your database(Nearest backup) to a new database (For ex: SRO_VT_SHARD1)

3. Select * FROM SRO_VT_SHARD1.dbo.Tab_RefNest

4. Copy the contents you have copied to SRO_VT_SHARD.dbo.Tab_RefNest.

Note: Create a database backup before you do any of this as it's not guranteed.

Good luck
again... unprofessional because ID´s will not match

1. DROP TABLE SRO_VT_SHARD.dbo.Tab_RefNest
2. Restore your Database with name SRO_VT_SHARD_Restore
3. Run This Query:

Code:
SELECT * INTO SRO_VT_SHARD.dbo.Tab_RefNest FROM SRO_VT_SHARD_Restored.dbo.Tab_RefNest
Sir*Evil dont call you a DB Developer if u cant even restore a single table...
Syloxx is offline  
Old 07/27/2014, 19:33   #7
 
Zodiao's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 748
Received Thanks: 227
Quote:
Originally Posted by Syloxx View Post
again... unprofessional because ID´s will not match

1. DROP TABLE SRO_VT_SHARD.dbo.Tab_RefNest
2. Restore your Database with name SRO_VT_SHARD_Restore
3. Run This Query:

Code:
SELECT * INTO SRO_VT_SHARD.dbo.Tab_RefNest FROM SRO_VT_SHARD_Restored.dbo.Tab_RefNest
Sir*Evil dont call you a DB Developer if u cant even restore a single table...

Hmm, Mr. Show off

Let me explain it to you as you are a brainless kid
I didn't say to restore any database I said "YOUR" database, which why the IDs will match, dumba$$
Also what you said is exactly what i said, so you didn't add anything but the query which can be done normally too without using a query, stop showing off because you are bad at it
Zodiao is offline  
Old 07/28/2014, 07:40   #8
 
Syloxx's Avatar
 
elite*gold: 56
Join Date: Oct 2013
Posts: 1,165
Received Thanks: 774
Quote:
Originally Posted by Sir*EviL View Post
Hmm, Mr. Show off

Let me explain it to you as you are a brainless kid
I didn't say to restore any database I said "YOUR" database, which why the IDs will match, dumba$$
Also what you said is exactly what i said, so you didn't add anything but the query which can be done normally too without using a query, stop showing off because you are bad at it
And again, no clue about joymax database:

a unedited Joymax Table use automatic identify

means...

if u insert a row doenst matter what ID u insert the database will replace it with the lastest ID +1

and we all know that Joymax have some gaps in the Tables example:

Joymax have this kind of ids

100
101
102
154
155

if u copy and insert this now in a TRUNCATED table following will happen.

ID´s will be replaced with

100
101
102
103
104

this is why IDs will not match

srysl because ppl like u there are so many queries / tables in dbs where i just wanna cry...

im one of the guys who have to fix your ****

and btw my query does not do the same like you

with my query the table will get copied not just the content that means also the IDs will match!

u show again that you are not a db developer cmon please stop it... you disfigure your self

new Signature for you:

Syloxx is offline  
Old 07/28/2014, 16:09   #9
 
Zodiao's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 748
Received Thanks: 227
You do know that the Tab_Refnest has automatic identify on NestID only?
Which can be whatever the hell it would be, as it's not linked to any other ****? no. k bye

so again you should really stop showing off
Zodiao is offline  
Old 07/28/2014, 16:21   #10
 
Syloxx's Avatar
 
elite*gold: 56
Join Date: Oct 2013
Posts: 1,165
Received Thanks: 774
Quote:
Originally Posted by Sir*EviL View Post
You do know that the Tab_Refnest has automatic identify on NestID only?
Which can be whatever the hell it would be, as it's not linked to any other ****? no. k bye

so again you should really stop showing off
sure i know it, it does not change the fact that IDs will not match with the original or?

did i ever said it wont not work ?

i said unprofessional

try to restore Hive / Tactics on your way

this kind of tables wont work

or tell me please
how you would restore _RefObjCommon

please tell me that im very excited
Syloxx is offline  
Old 07/28/2014, 16:26   #11
 
Zodiao's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 748
Received Thanks: 227
Quote:
Originally Posted by Syloxx View Post
sure i know it, it does not change the fact that IDs will not match with the original or?

did i ever said it wont not work ?

i said unprofessional

try to restore Hive / Tactics on your way

this kind of tables wont work

You really should stop embarrassing yourself,
Why the hell would I want my IDs matching? so it can fit out my new dress?
seriously?
You are really not even good at it,
And nope you didn't know it, that's why you found the way around with Hive, Tactics.. also If you are that good you shouldn't feel burnt that way
Zodiao is offline  
Old 07/28/2014, 16:37   #12
 
Syloxx's Avatar
 
elite*gold: 56
Join Date: Oct 2013
Posts: 1,165
Received Thanks: 774
Quote:
Originally Posted by Sir*EviL View Post
You really should stop embarrassing yourself,
Why the hell would I want my IDs matching? so it can fit out my new dress?
seriously?
You are really not even good at it,
And nope you didn't know it, that's why you found the way around with Hive, Tactics.. also If you are that good you shouldn't feel burnt that way
srysl u think i dont know how to check which column is marked for auto identify?

short tutorial for you:

Rightclick > Design on table:



Key = auto identify
there u can also see if the column allows null or not and what data Type is stored there

anyway i still waiting for the query "how to restore _RefObjCommon" i cant do it can u please gime a query
Syloxx is offline  
Old 07/28/2014, 16:39   #13
 
Zodiao's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 748
Received Thanks: 227
So that way you switched the subject the fact that you made yourself a total idiot?

W/e not replying to this anymore, you just made yourself a total idiot AGAIN...
See ya arrogant kid.(Fails to be that too)
What a fail!

also what the hell is srysl?
Zodiao is offline  
Old 07/28/2014, 16:49   #14
 
Syloxx's Avatar
 
elite*gold: 56
Join Date: Oct 2013
Posts: 1,165
Received Thanks: 774
Quote:
Originally Posted by Sir*EviL View Post
So that way you switched the subject the fact that you made yourself a total idiot?

W/e not replying to this anymore, you just made yourself a total idiot AGAIN...
See ya arrogant kid.(Fails to be that too)
What a fail!

also what the hell is srysl?
nope i didnt switched the subject

we sill talking about restore tables and what happen with the IDs so we just changed a table name and btw

and i just want to hear from you:

"yes ok my method is worse / unprofessional" then everything is good.
btw just because u can setup a SRO Server and make some simple changes you are not an Developer!
Syloxx is offline  
Old 07/29/2014, 08:17   #15

 
鳳凰城's Avatar
 
elite*gold: 273
Join Date: Aug 2012
Posts: 4,451
Received Thanks: 2,429
Quote:
Originally Posted by Syloxx View Post
again... unprofessional because ID´s will not match

1. DROP TABLE SRO_VT_SHARD.dbo.Tab_RefNest
2. Restore your Database with name SRO_VT_SHARD_Restore
3. Run This Query:

Code:
SELECT * INTO SRO_VT_SHARD.dbo.Tab_RefNest FROM SRO_VT_SHARD_Restored.dbo.Tab_RefNest
Sir*Evil dont call you a DB Developer if u cant even restore a single table...
So someone with random female render from google images with some paint .net text SyLoXoXOoxXXoxo is the developer right?
writing
like

this

is


the
developer

Quote:
Originally Posted by Syloxx View Post
nope i didnt switched the subject

we sill talking about restore tables and what happen with the IDs so we just changed a table name and btw

and i just want to hear from you:

"yes ok my method is worse / unprofessional" then everything is good.
btw just because u can setup a SRO Server and make some simple changes you are not an Developer!
Egyptian alert.



*i'm egy maself*
鳳凰城 is offline  
Reply


Similar Threads Similar Threads
Query ....
02/25/2012 - Metin2 Private Server - 1 Replies
Hallo , ich bräuchte die Query von den Waffen http://img703.imageshack.us/img703/9403/armiy.png Danke
[Help] query in sql
06/06/2011 - Shaiya Private Server - 6 Replies
there is some easy query's already in this forum. but i hope some will share there other too. or i have one i realy want and can't make for mye self. when you get a username that has payed for points (AP) (DP) and so on is there a query to add to already points. so i don't just change it to 70 000 if he already have 20 000 and pays for 70 000. i want something to add 70 000 to 20 000 so i get 90 000 and not just change it to 70 000 and all the points he/she hade is gone. i don't...
[Suche]Query für "Alteklinge, Reichsklinge" &' Stichdolche NUR QUERY!
08/18/2010 - Metin2 Private Server - 1 Replies
Ich weiß ich werd nervig aber ich suche die Query's für Alteklinge, Reichsklinge &' Strichdolche Why? Naya, weil ich in der DB i-wie nur Drachenmaulglocke hab ... not more -.- Auf jeden Fall Icon's etc. etc. etc. hab ich ich brauche nur die Query's
A Query
03/02/2010 - 12Sky2 - 6 Replies
Hi, First off, i'm an addict for 12sky 2. I play both 12sky 2 PH and 12sky 2 aeria. All the hax i find here for aeria server has been very helpful. Apparently, things are quite the opposite for 12sky2 ph server since we have Xtrap. So hacking is quite impossible for PH. Lately there has been major issues in PH server like some people using cheats/hacks. Fact is, there are already people banned in PH server for using hax. Anyway, been trying to find a way to hack 12sky 2 ph server but...



All times are GMT +1. The time now is 06:25.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.