Here is what is require to complete this Objective.
Data Flow Task: Inside this task we will perform data import.
OLE DB Source: To select the source of data i.e SQL server database table.
Flat File Destination: Destination in which we want to load the data.
Steps
Drag and drop a Data Flow Task from the SSIS toolbox from the Favorites section.
Double click on the Data Flow Task in the Control Flow it will take us to the Data Flow.
Drag and drop a OLE DB Source, by default a cross will appear on it, it means it is not configured with a connection. Double click on the OLE DB Source task, click on the New.
On the Configure OLE DB Connection Manager window click New. Now in the Connection Manager window select the Server Name to which you want to connect. Select Windows Authentication if your server is on your machine otherwise Use SQL Server Authentication and enter user name and password. Click on the Test Connection at the buttom left to check the validity of the credential entered. Click OK and then again OK.
In the OLE DB Source Editor select name of the table or the view and click on the Preview to check the data. Click Close then OK.
Drag and drop a Flat File Destination task from the SSIS toolbox under the section other destinations. Connect the OLE DB Source to the Flat File Destination.
Double click on the Flat File Destination, click on New it will open Flat File Format window. Select Delimited if you want to specify the separator, text qualifier, end of line etc. Click OK.
In the Flat File Connection Manager Editor click Browse button, select the path for file and enter file name click Open. Even though we have not selected any file we have just entered the file name the file will get created.
Now select the Code Page, Text Qualifier etc. Remember to tick the checkbox column name in the first data row. On the left side select Columns here you can specify the data separator like comma or a pipe (|). Click OK.
In the Flat File Destination Editor overwrite data in the file is selected, update it according to requirement. On the left select Mappings and check if columns are mapped correctly. Click OK.
In the Solution Explorer right click on the package name and execute it to check.