Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 352
  • Last Modified:

sql to copy data from table 1 to table 2 in sep databases

Is there a way to create a script to copy data from database1 to database2  from table1 in database1 to table2 in database2 ?   The tables have the exact same structure, I am basically moving them from one DB to another, once they are copied Ill later on delete them from the first database.
1 Solution
insert into database1.dbo.table1(fieldlist)
select fieldlist
from database2.dbo.table1
AleksAuthor Commented:
Thanks, Ill give it a shot in a little bit.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now