Register for your free account! | Forgot your password?

You last visited: Today at 05:24

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

Advertisement



Delete Guild ?

Discussion on Delete Guild ? within the SRO Private Server forum part of the Silkroad Online category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2017
Posts: 27
Received Thanks: 4
Exclamation Delete Guild ?

when i use query to delete all guild send me error ?

Query

Error
thisismastercap is offline  
Old 04/09/2017, 11:43   #2
 
MrCatGardens's Avatar
 
elite*gold: 235
Join Date: Apr 2016
Posts: 321
Received Thanks: 110
Holy ****, who told you to delete the full table?

Code:
USE SRO_VT_SHARD;
ALTER TABLE [_Guild] DROP  CONSTRAINT [FK__Guild__AlliedClans];
TRUNCATE TABLE _Guild;
SET IDENTITY_INSERT _Guild ON
INSERT INTO [_Guild] ([ID],[Name],[Lvl],[GatheredSP],[FoundationDate],[Alliance],[MasterCommentTitle],[MasterComment],[Booty],[Gold],[LastCrestRev],[CurCrestRev],[MercenaryAttr]) VALUES (0, 'dummy', 1, 0, getdate(), 0, null, null, 0, 0, 0, 0, 0);
SET IDENTITY_INSERT _Guild OFF
ALTER TABLE [_Guild] ADD CONSTRAINT [FK__Guild__AlliedClans] FOREIGN KEY(Alliance)REFERENCES [_AlliedClans](ID);
This should be the right way...
Drop constraint(s)
Truncate table
Insert the dummy guild with ID '0'
Add your deleted constraint(s)
MrCatGardens is offline  
Old 04/09/2017, 15:34   #3
 
elite*gold: 0
Join Date: Apr 2017
Posts: 27
Received Thanks: 4
Quote:
Originally Posted by skardana View Post
Holy ****, who told you to delete the full table?

Code:
USE SRO_VT_SHARD;
ALTER TABLE [_Guild] DROP  CONSTRAINT [FK__Guild__AlliedClans];
TRUNCATE TABLE _Guild;
SET IDENTITY_INSERT _Guild ON
INSERT INTO [_Guild] ([ID],[Name],[Lvl],[GatheredSP],[FoundationDate],[Alliance],[MasterCommentTitle],[MasterComment],[Booty],[Gold],[LastCrestRev],[CurCrestRev],[MercenaryAttr]) VALUES (0, 'dummy', 1, 0, getdate(), 0, null, null, 0, 0, 0, 0, 0);
SET IDENTITY_INSERT _Guild OFF
ALTER TABLE [_Guild] ADD CONSTRAINT [FK__Guild__AlliedClans] FOREIGN KEY(Alliance)REFERENCES [_AlliedClans](ID);
This should be the right way...
Drop constraint(s)
Truncate table
Insert the dummy guild with ID '0'
Add your deleted constraint(s)
Done Fixed Ty
thisismastercap is offline  
Old 06/22/2018, 03:28   #4
 
elite*gold: 0
Join Date: Jan 2012
Posts: 107
Received Thanks: 0
not works with me can any one help !
kubed is offline  
Closed Thread




All times are GMT +1. The time now is 05:24.


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.