I have one scenario in which I am getting a lot of employee data like address, qualification, work experience, etc from different tables into a new table.
In the required result set there are a few columns which have same(duplicate) name.
For example the address
column appears multiple times. In my new table I have these column names saved as Address1
, Address2
, etc and while using select command I am using alias to rename the result set from address1
or address2
to address
.
I would like to export this data using SQL server Import Export Wizard
but the problem is that SQL won't let me export the result set with duplicate column names(since I have fetched the results using same alias for multiple columns).
The Error I get is
Could not connect source component. Error 0xc0207015