SQL Server Generate Script To Fill Tables With Data From Other Database? -


Suppose there are two databases with the same database, but there is data in a database table while the second is not the full table Is there a way in SQL script to fill empty tables with data from? P> If tables are the same and do not use an identity column, then it is quite easy.

You will do something like this:

  Add to the table in the selection * Again, only for the same table structures, otherwise you will have to change SELECT * to the right column and necessary Any conversions have to be done. 


Comments