My Issue
- When I try to make the packages responsible for migrating the lookups tables from the source database to my data warehouse for my bi-solution I found that some lookups tables are not located in database but in the code as ENUMS
Solution
- I fill the lookups tables in Excel sheets and make package responsible for migrating data from the excel to my data warehouse database
Steps
1. I fill the lookups tables from the ENUMS file in to Excel sheet every sheet in excel file present one table
2. Sample for ENUMS file
namespace REMS.Business
{
public enum UnitBookingResult
{
CanBeBooked = 0,
BookingExists = 1,
ContractExists = 2,
SalesBookingExists = 3,
SalesContractExists = 4,
NotMarkedForSale = 5,
IsVirtual,
NotEnoughArea,
SubMergedUnit,
InActiveUnit
}
2. The Excel Sheet Screenshot I Create

3. Open new integration services project from SQL Server Business Intelligence Development Studio

4. Select Excel source

5. Select Excel File Path

6. Select Table or View and choose the table you want it as your source from excel file

7. Add OLEDB Destination and connect it with the Excel source

8. Create A New Connection

9. Select the database you want to transfer the data to it

10. Choose the destination table

11. Map the columns from source table to the destination table

12. Make previous steps for the rest of the lookups table

Finally Run the Package