isss examples and importing

12
1 SQL Server Import/Export Wizard Figure 1: Import/Export Step 1 – Start the wizard

Upload: tido-thobeka-mzilikazi

Post on 12-Jul-2016

222 views

Category:

Documents


1 download

DESCRIPTION

importing files on data base

TRANSCRIPT

Page 1: isss examples and importing

1

SQL Server Import/Export Wizard

Figure 1: Import/Export Step 1 – Start the wizard

Page 2: isss examples and importing

2

Figure 2: Import/Export Step 2 – Choose a data source

Page 3: isss examples and importing

3

Figure 3: Import/Export Step 3 - Choose a destination

Page 4: isss examples and importing

4

Figure 4: Import/Export Step 4 - Select source tables and views

Page 5: isss examples and importing

5

Figure 5: Import/Export Step 5 - Edit Mappings

Page 6: isss examples and importing

6

Figure 6: Import/Export Step 6 - Save and/or run package

Page 7: isss examples and importing

7

SSIS packages A package is an organized collection of connections, control flow elements, data flow elements, event

handlers, variables, parameters, and configurations, that you assemble using either the graphical

design tools that SQL Server Integration Services provides, or build programmatically. You then save

the completed package to SQL Server, the SSIS Package Store, or the file system.

SSIS is primarily an ETL and batch data processing tool. SSIS can easily read multiple files from a

network drive and provides the tools to transform data, either before or after loading it into a

database.

SSIS packages that are stored on the server are listed under Integration Services (you must have

administrator rights to log into Integration Services). You can also save the SSIS package to the file

system – it is saved as a dtsx file.

In order to edit the SSIS package, you must export the package from the server (unless you already

have it saved on the file system). The dtsx file can then be edited, saved and redeployed.

Screenshots of SSIS configuration

Figure 7: Example of editing an SSIS package (exported as a dtsx file)

Page 8: isss examples and importing

8

Figure 8: Editing an SSIS package - Control Flow

Figure 9: SSIS Data Transform Task SQL to Excel File

Page 9: isss examples and importing

9

Figure 10: Advanced Editor for Flat File Source

Figure 11: Mapping Fields

Page 10: isss examples and importing

10

Example

Figure 12: Three linked tasks

Figure 13: The finished Data Flow task

Page 11: isss examples and importing

11

Figure 14: Renaming the columns

Figure 15: Converting fields to appropriate data types

Page 12: isss examples and importing

12

Figure 16: Mapping data into staging table fields