Using a script (however without using data import/export, without using backup restore, without using database copy) how can I copy complete tables (schema and data) from one database on the same server to another database on the same server?
I've already tried to do what I've italicized above; however, due to user permissions etc, I was unable to use those methods.
Perhaps this will work:
SELECT *
INTO newdb.dbo.newtable
FROM olddb.dbo.oldtable
But I would like to apply this to every table (around 100 tables).