Click here to Skip to main content
15,898,588 members

Comments by Jassom (Top 14 by date)

Jassom 10-Aug-20 17:32pm View    
I tried it.
Jassom 10-Aug-20 16:47pm View    
it doesn't matter if the column names doesn't match.
In case you choose to use (*), only what should match are these below:
1- type of columns.
2- number of columns.

but column names doesn't matter
Jassom 10-Aug-20 16:26pm View    
Yes, in case you will not use the (*), You can choose specific columns, as you said.
Jassom 10-Aug-20 15:52pm View    
DELETE FROM [dbo].[VISION_SALEHIST4]
GO

INSERT INTO [dbo].[VISION_SALEHIST4] SELECT * FROM [TOMSQLVISION].[VISION_2020].[REAL_PROP].[VW_HSALE]
GO

Note: It must be both tables have the same columns and the same order.
Jassom 10-Aug-20 15:25pm View    
You dropped the table at first .. and then how would you insert values into a dropped table???