I’m working to push the contents of one table source (from a linked server) to an another table i.e. dbo.dest
insert into [dbo].[dest]
select *
from OPENQUERY(LINKEDSERVER,'select * from source')
Source table has 50 columns.
Is there any way I can create the table (dbo.dest) dynamically for the columns for source?
Any input would be helpful.
Thanks !!!!
Try this, might work:
NB [dbo].[dest] can’t exist when you run this query.