m_11_1.00 data transport with demos and labs.pdf
TRANSCRIPT
-
7/27/2019 M_11_1.00 Data Transport with Demos and Labs.pdf
1/12
Module 11:Data Transport
-
7/27/2019 M_11_1.00 Data Transport with Demos and Labs.pdf
2/12
Overview
Tools and functionality in Oracle and their equivalents inSQL Server for
Data transport out of the database
Data transport into the database
Tools and functionality in SQL Server for data transportinto, out of, and within a database and across multipledatabases, multiple file formats, and other data sourcesand destinations
-
7/27/2019 M_11_1.00 Data Transport with Demos and Labs.pdf
3/12
Data Out Overview
SQL Server ToolsSQL Server
Integration Services (SSIS)
BCP
Sqlcmd.exe
PowerShell
SE
LECT or PRINT
Linked Servers
Oracle Tools
Data Pump Export Utility
SQL*Plus
DBMS_OUTPUT
UTL_FILE
Oracle 11g
SQL Server
2012
-
7/27/2019 M_11_1.00 Data Transport with Demos and Labs.pdf
4/12
Data In Overview
Input
Parts
PayrollPerson
SQL Server ToolsSQL Server
Integration Services (SSIS)
BCP
Bulk
Insert
Sqlcmd.exe
PowerShell
SELECT INTO
Linked Servers
Oracle Tools
Data Pump Import Utility
SQL*Plus
CREATE TABLE
SQL Server
2008
-
7/27/2019 M_11_1.00 Data Transport with Demos and Labs.pdf
5/12
SQL Server Data Transport
SQL Server offers several Bulk Copy commands and tools:
BCP, the Bulk Copy utility, is used to transfer large volumes of data
in and out of a database
To exportdata is dumped into a flat file in a delimited format
To importdata is first exported from the source database or program
and then imported into SQL Server database
BULK INSERT command can be used within Transact-SQL
programs to insert large volumes of data from a flat file
Bulk copy API can be used in ODBC, OLE DB, SQL-DMO and SMO
applications OPENROWSET (BULK) can also be used to bulk import large
object data in SQL Server
-
7/27/2019 M_11_1.00 Data Transport with Demos and Labs.pdf
6/12
Demonstration: Bulk Copy and Bulk Insert
In this demonstration you will learn to:
Extract the data with the Bulk CopyProgram (bcp)
Use bcp and Bulk Insert to import data
into new tables
-
7/27/2019 M_11_1.00 Data Transport with Demos and Labs.pdf
7/12
SQL Server Integration Services (SSIS)
SQL Server Integration Services offers several tools toextract, transform and load data from multiple datasources into SQL Server databases and vice versa
Provides control over data flow, looping and
conditioningPackages can be built using
SSIS designer in Business
Intelligence Development Studio
Import / Export Wizard Database Export Utility
-
7/27/2019 M_11_1.00 Data Transport with Demos and Labs.pdf
8/12
Elements of Integration Services
SQL Server Integration Services Service (MsDtsSrvr.exe)Package
Control Flow Elements
Containers
Tasks
Precedence Constraints
Data Flow Elements
Event Handlers Variables
Configurations
-
7/27/2019 M_11_1.00 Data Transport with Demos and Labs.pdf
9/12
SSIS Tools
SSIS tools are used to create, modify and execute PackagesSSIS Import / Export Wizard
Assists in building simple Packages to import, export, and transform
data or to copy database objects
SSIS Designer inside SQL Server Data Tools (SSDT) Graphical application that lets us build and debug packages
containing complex workflows, multiple connections to
heterogeneous data sources, and event-driven logic
SSIS Package Execution Utilities
dtexecui.exe
dtexec.exe
dtutil.exe is a tool used to manage SSIS packages
-
7/27/2019 M_11_1.00 Data Transport with Demos and Labs.pdf
10/12
Demonstration: SSIS Data Flow
In this demonstration you will learn to:Extract conditional table from one sourceto multiple destinations
-
7/27/2019 M_11_1.00 Data Transport with Demos and Labs.pdf
11/12
Demonstration: Import/Export Wizard
In this demonstration you will learn to:Move data using Import/Export Wizard
-
7/27/2019 M_11_1.00 Data Transport with Demos and Labs.pdf
12/12
Review
We reviewed tools used in Oracle for transferring data out of adatabase Data Pump Export utility, SQL*Plus, SBMS_UTILITY andUTL_FILE packages and their SQL Server equivalents bcp utility,sqlcmd.exe tool, SSIS, print and SELECT statements
We have seen tools used in Oracle for transferring data into adatabase Data Pump Import utility, SQL*Plus, SQL*Loader andcommand, SSIS, OPENROWSET
We discussed in detail the Bulk Copy commands in SQL Server
We discussed SSIS in detail, including:
SSIS Package components such as tasks, transformations and
workflow constraints
SSIS tools such as Import//Export Wizard, SSIS Designer