By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,988 Members | 1,360 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,988 IT Pros & Developers. It's quick & easy.

Dependies of a copied table

P: 1
I have copied a table from one database to another using
create table tb_name select * from db_another.tb_name

If a foriegn key was used in tb_name in db_another will the foriegn key reference to the similar table in the existing database or will it still point to the table in the db_another database
If the dependencies are not sorted out How can I point it to the current database
Thanks in advance.
Jul 19 '11 #1
Share this Question
Share on Google+
1 Reply


100+
P: 384
It will look for the table that it was referencing the current database so if that table wasn't copied over it wont find it.
Jul 22 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.