Reputation: 1454
I am trying to running the following command to copy a table to another database and it is saying incorrect syntax near "tbl_SecurityNamespace". Any ideas? TIA
select * into ForMSDB tbl_SecurityNamespace
from Tfs_configuration
go
Upvotes: 1
Views: 48
Reputation: 50163
This should be as
select * into ForMSDB..tbl_SecurityNamespace
from Tfs_configuration;
Upvotes: 1
Reputation: 2686
If it's another database in the same environment:
select * into ForMSDB..tbl_SecurityNamespace
from Tfs_configuration
Upvotes: 2