Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 07:30

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

Advertisement



How to copy tables from other db

Discussion on How to copy tables from other db within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2014
Posts: 71
Received Thanks: 47
Angry How to copy tables from other db

deleted
alangomez2 is offline  
Old 11/27/2019, 20:28   #2
 
#HB's Avatar
 
elite*gold: 100
Join Date: Sep 2017
Posts: 1,108
Received Thanks: 903
You can set IDENTITY_INSERT off, copy, then set it back on.
#HB is offline  
Old 11/28/2019, 20:36   #3
 
NorseGodTyr's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 2,223
Received Thanks: 1,481
Quote:
Originally Posted by alangomez2 View Post
Two tables

*Shard
*Shard1

Table _RefGame_World

I cant copy the table from Shard1 to Shard

There is a problem with the Constraint Pk key

So what i can do??

If i deleted the primary key then i cant recreate it

If i dont delete it i cant copy the tables

Any hints?

With my Shard ()

With a clean Shard db (Shard1)



So the problem is that, with my shard jump from 94 to 96 and with a clean db not, why?
Red is the Table
SELECT * INTO SRO_VT_SHARD.dbo._RefObjItem from SRO_VT_SHARD1.dbo._RefObjItem
NorseGodTyr is offline  
Old 11/29/2019, 00:52   #4
 
elite*gold: 0
Join Date: Jun 2014
Posts: 71
Received Thanks: 47
Quote:
Originally Posted by #HB View Post
You can set IDENTITY_INSERT off, copy, then set it back on.
Dude i fixed it, but i tried that and, cant cuz the key clustered

Quote:
Originally Posted by NorseGodTyr View Post
Red is the Table
SELECT * INTO SRO_VT_SHARD.dbo._RefObjItem from SRO_VT_SHARD1.dbo._RefObjItem
That's for sure not working since the identity and also the key, i tried this method b4
alangomez2 is offline  
Old 11/30/2019, 07:48   #5
 
elite*gold: 0
Join Date: Apr 2016
Posts: 289
Received Thanks: 67
INSERT INTO Shard.._Table Select * from Shard1.._Table
hoangphan7 is offline  
Old 11/30/2019, 19:45   #6
 
elite*gold: 0
Join Date: Jun 2014
Posts: 71
Received Thanks: 47
Quote:
Originally Posted by hoangphan7 View Post
INSERT INTO Shard.._Table Select * from Shard1.._Table
You should read first, i've fixed but your method won't work since there is needed to set identity insert on and also the table has a pk key
alangomez2 is offline  
Reply


Similar Threads Similar Threads
[Trading] Have BF1 copy(origin edition) Want Overwatch copy (origin edition)
11/09/2016 - Overwatch Trading - 1 Replies
Have BF1 code , win on twitter have proof everything , (normal edition). want overwatch copy ( origin ) if amyone want to trade dm :)
[Selling] [H] 1 copy of Goat Simulator & 1 copy of Space Engineers [W] Keys or Paypal
04/06/2014 - Steam Trading - 0 Replies
Hey guys! Got a ROW gift copy of each of these games. I'm looking for keys (TF2, DOTA2 or CS:GO) or Paypal for them. I'd like to get 4 keys or 6€ Paypal for Goat Simulator and 4 keys or 6€ Paypal for Space Engineer. If you are interested, please, feel free to post here or add me in Steam for a fast trade. This is my steam profile: steamcommunity.com/id/kalimochoman/
Tradeing Copy of Paly DB for a Copy of the right ACC, MSG,and NPC Servers
11/13/2008 - EO PServer Hosting - 3 Replies
Hey ill trade a copy of the Paly DB for a Copy of the Right ACC and MSG and NPC server msg me on msn [email protected]



All times are GMT +1. The time now is 07:31.


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.