Check out example codes for "migrate sql table another database". It will help you in understanding the concepts better.

Code Example 1

INSERT INTO dbo.YourTableNameHere
   SELECT *
   FROM [SourceServer].[SourceDatabase].dbo.YourTableNameHere

Learn ReactJs, React Native from akashmittal.com