SlideShare une entreprise Scribd logo
1  sur  39
Why ColdFusion isn’t the best tool in your
toolbelt
• Manager of Data and Development for
Data Diver Technologies in Chandler, AZ
• Managed the Phoenix CFUG
• I’ve worked with ColdFusion and SQL Server since
the late 90’s
• Hates CCS front end work and CSS hates me
• How to find me on the Interwebs:
• Email: jeff@garzasixpack.com Twitter: @cf_coder
• Extract, Transform and Load
• Can be data from many types of sources
• Flat Text files, Excel, XML, Other Databases
• Destinations can also vary
• Cubes, Flat Text Files, Excel, XML, Other
Databases
• Basic Process
• Get Data, Mess with it and Stuff it somewhere else
• Familiarity with platform is tempting
• Inherently Slow
• Reads and Transforms data Line by line
• “Line by line” kills performance
• Doesn’t take advantage of processes inherent
in the DB platform for bulk data processing
• Native database functionality for bulk data
• BCP : Bulk Copy Process
• Clunky
• Requires Command Text files
• Run from command line or Powershell
• Import Data Wizard (SQL Server)
• One off Imports, no transformations
• SQL Server Integration Services (SSIS)
• Runs in BIDS
• Business Intelligence Development Studio
• Multiple inputs and outputs
• Workflow and process based
• Scriptable and dynamic inputs
• Starting up the environment
• Project Based
• Can open just files, but projects allow for more
options.
• Integration with source control
• SVN (Tortise and VisualSVN)/GIT/Others
Project Deployment Models
•Package Deployment Model
• Stores packages in a disk based folder structure
•Project Deployment Model
• Deploys packages to a special database
•Either model can be run outside of BIDS.
• Connection Managers
• These will set up the input/output files and
database connections.
• Can be set at project or package level.
• Create DB Connection
• Create Connections to any Files
• Can create new files for output or input
• Workflow using Pre-Built Components
• Lots of options
• Get Files, run commands, loop over things
• Primarily Execute SQL and Data Flow Tasks
• Connectors
• Go/No Go, evaluation, data viewers
• Red connectors re-direct on error.
• Variables
• Create at the package level
• Set at the component level
• Uses most Basic Types of variable classes
• Ints, Strings, Booleans, Dates and Objects
• Objects are typically Recordsets but can also
be Arrays and COM objects.
• File Connections
• Multi-File pulls from Directories
• QUERY Result sets
• Web Services
• OLEDB/ODBC Connections
Getting Data Into Your Package
• FTP Component
• Built in and very simple
• Does not do advanced FTP functions
• HTTP File Requests
• No built in component for this
• Use Script or Command Line (wget)
4/10/14
• Data Flow Task
• Heavy lifting of getting data from A to B
• Utilizes the pre-defined connections
• Can create them on the fly if necessary
• Can transform data in the pipeline en-route to
the destination tables/files
4/10/14
• Change the data in the pipeline
• Can be helpful if you’re not a SQL person
• Editors make choosing transformations easy
• Performance can be impacted
• Anything that impedes the pipeline slows
the data transfer process down.
• Becomes a larger issue with larger datasets
4/10/14
• Component Level Errors
• Can Redirect Flow to another path
• Allows for cleanup of temp tables/files, send
Email to administrator
• Data Flow Errors
• Redirection of Bad Rows to an Error File
• Can trap General or Truncation Errors.
• For and For Each Containers
• For Containers are basically count loopers
• For Each Containers
• Loops over files, arrays, and objects
• Must be used with Variables
• Great way to deal with sequential files
• The Marketing Database of Choice!
• Not terribly difficult to work with
• Data is in UTF-8 format, Nvarchar → Varchar
• Need special connection parameters to skip
top level rows
• Make Sure project Debug Options set to 32-bit
• Report Format (multi-row records)
• Most difficult format to work with
• Conditional Split Transformer
• Built in and works with the pipeline
• Cursor and String Parsing
• Allows for keeping rows grouped with IDs
• XML
• You must have a DTD
• SSIS will create one for you
• Data is in UTF-8 format
• Either Transform to VARCHAR or use
NVARCHAR for result
• Cannot call packages directly from ColdFusion
• Run manually through BIDS (easiest)
• SQL Agent - Scheduler for SQL Server
• Options for the Agent
• Run the Agent on a schedule and look for work
• Set up the Agent task and then execute via TSQL
Executing a SQL Agent Job from TSQL
You need to be in MSDB to run the Agent.
Access to MSDB limited to SysAdmin roles.
USE msdb ;
GO
EXEC dbo.sp_start_job N'AgentTaskName' ;
GO
• Data Validation – Delay Validation “YES”
• SSIS will check for existence of Tables/Files.
• Create temp tables beforehand or turn off.
• Excel Files
• Must use 32-bit debug execution mode.
• Data Type conversions
• Try importing to VARCHARs and convert
afterwards if needed.
• Learn SQL String Manipulation!
• This is the toughest aspect of dealing with
text files and textual data.
• Very limited number of functions to use
• Left(), Right, Substring(), Len()
• CharIndex() and PatIndex()
• String Length Math
• Temp Tables
• Where is TempDB?
• #Table vs. ##Table vs. Temp_Table
• Usage as part of aggregate queries
• Make sure you have enough space for
TempDB operations.
• When dealing with large data sets, TempDB
can get very large very fast.
Managing etl with microsoft sql server integration services
Managing etl with microsoft sql server integration services

Contenu connexe

Plus de ColdFusionConference

Building better SQL Server Databases
Building better SQL Server DatabasesBuilding better SQL Server Databases
Building better SQL Server DatabasesColdFusionConference
 
API Economy, Realizing the Business Value of APIs
API Economy, Realizing the Business Value of APIsAPI Economy, Realizing the Business Value of APIs
API Economy, Realizing the Business Value of APIsColdFusionConference
 
Crafting ColdFusion Applications like an Architect
Crafting ColdFusion Applications like an ArchitectCrafting ColdFusion Applications like an Architect
Crafting ColdFusion Applications like an ArchitectColdFusionConference
 
Security And Access Control For APIS using CF API Manager
Security And Access Control For APIS using CF API ManagerSecurity And Access Control For APIS using CF API Manager
Security And Access Control For APIS using CF API ManagerColdFusionConference
 
Monetizing Business Models: ColdFusion and APIS
Monetizing Business Models: ColdFusion and APISMonetizing Business Models: ColdFusion and APIS
Monetizing Business Models: ColdFusion and APISColdFusionConference
 
Become a Security Rockstar with ColdFusion 2016
Become a Security Rockstar with ColdFusion 2016Become a Security Rockstar with ColdFusion 2016
Become a Security Rockstar with ColdFusion 2016ColdFusionConference
 
Developer Insights for Application Upgrade to ColdFusion 2016
Developer Insights for Application Upgrade to ColdFusion 2016Developer Insights for Application Upgrade to ColdFusion 2016
Developer Insights for Application Upgrade to ColdFusion 2016ColdFusionConference
 
ColdFusion Keynote: Building the Agile Web Since 1995
ColdFusion Keynote: Building the Agile Web Since 1995ColdFusion Keynote: Building the Agile Web Since 1995
ColdFusion Keynote: Building the Agile Web Since 1995ColdFusionConference
 
Super Fast Application development with Mura CMS
Super Fast Application development with Mura CMSSuper Fast Application development with Mura CMS
Super Fast Application development with Mura CMSColdFusionConference
 
Build your own secure and real-time dashboard for mobile and web
Build your own secure and real-time dashboard for mobile and webBuild your own secure and real-time dashboard for mobile and web
Build your own secure and real-time dashboard for mobile and webColdFusionConference
 

Plus de ColdFusionConference (20)

Api manager preconference
Api manager preconferenceApi manager preconference
Api manager preconference
 
Cf ppt vsr
Cf ppt vsrCf ppt vsr
Cf ppt vsr
 
Building better SQL Server Databases
Building better SQL Server DatabasesBuilding better SQL Server Databases
Building better SQL Server Databases
 
API Economy, Realizing the Business Value of APIs
API Economy, Realizing the Business Value of APIsAPI Economy, Realizing the Business Value of APIs
API Economy, Realizing the Business Value of APIs
 
Don't just pdf, Smart PDF
Don't just pdf, Smart PDFDon't just pdf, Smart PDF
Don't just pdf, Smart PDF
 
Crafting ColdFusion Applications like an Architect
Crafting ColdFusion Applications like an ArchitectCrafting ColdFusion Applications like an Architect
Crafting ColdFusion Applications like an Architect
 
Security And Access Control For APIS using CF API Manager
Security And Access Control For APIS using CF API ManagerSecurity And Access Control For APIS using CF API Manager
Security And Access Control For APIS using CF API Manager
 
Monetizing Business Models: ColdFusion and APIS
Monetizing Business Models: ColdFusion and APISMonetizing Business Models: ColdFusion and APIS
Monetizing Business Models: ColdFusion and APIS
 
Become a Security Rockstar with ColdFusion 2016
Become a Security Rockstar with ColdFusion 2016Become a Security Rockstar with ColdFusion 2016
Become a Security Rockstar with ColdFusion 2016
 
ColdFusion in Transit action
ColdFusion in Transit actionColdFusion in Transit action
ColdFusion in Transit action
 
Developer Insights for Application Upgrade to ColdFusion 2016
Developer Insights for Application Upgrade to ColdFusion 2016Developer Insights for Application Upgrade to ColdFusion 2016
Developer Insights for Application Upgrade to ColdFusion 2016
 
Where is cold fusion headed
Where is cold fusion headedWhere is cold fusion headed
Where is cold fusion headed
 
ColdFusion Keynote: Building the Agile Web Since 1995
ColdFusion Keynote: Building the Agile Web Since 1995ColdFusion Keynote: Building the Agile Web Since 1995
ColdFusion Keynote: Building the Agile Web Since 1995
 
Instant ColdFusion with Vagrant
Instant ColdFusion with VagrantInstant ColdFusion with Vagrant
Instant ColdFusion with Vagrant
 
Restful services with ColdFusion
Restful services with ColdFusionRestful services with ColdFusion
Restful services with ColdFusion
 
Super Fast Application development with Mura CMS
Super Fast Application development with Mura CMSSuper Fast Application development with Mura CMS
Super Fast Application development with Mura CMS
 
Build your own secure and real-time dashboard for mobile and web
Build your own secure and real-time dashboard for mobile and webBuild your own secure and real-time dashboard for mobile and web
Build your own secure and real-time dashboard for mobile and web
 
Why Everyone else writes bad code
Why Everyone else writes bad codeWhy Everyone else writes bad code
Why Everyone else writes bad code
 
Securing applications
Securing applicationsSecuring applications
Securing applications
 
Testing automaton
Testing automatonTesting automaton
Testing automaton
 

Dernier

Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceanilsa9823
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 

Dernier (20)

Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 

Managing etl with microsoft sql server integration services

  • 1. Why ColdFusion isn’t the best tool in your toolbelt
  • 2. • Manager of Data and Development for Data Diver Technologies in Chandler, AZ • Managed the Phoenix CFUG • I’ve worked with ColdFusion and SQL Server since the late 90’s • Hates CCS front end work and CSS hates me • How to find me on the Interwebs: • Email: jeff@garzasixpack.com Twitter: @cf_coder
  • 3.
  • 4.
  • 5. • Extract, Transform and Load • Can be data from many types of sources • Flat Text files, Excel, XML, Other Databases • Destinations can also vary • Cubes, Flat Text Files, Excel, XML, Other Databases • Basic Process • Get Data, Mess with it and Stuff it somewhere else
  • 6. • Familiarity with platform is tempting • Inherently Slow • Reads and Transforms data Line by line • “Line by line” kills performance • Doesn’t take advantage of processes inherent in the DB platform for bulk data processing
  • 7.
  • 8. • Native database functionality for bulk data • BCP : Bulk Copy Process • Clunky • Requires Command Text files • Run from command line or Powershell • Import Data Wizard (SQL Server) • One off Imports, no transformations
  • 9. • SQL Server Integration Services (SSIS) • Runs in BIDS • Business Intelligence Development Studio • Multiple inputs and outputs • Workflow and process based • Scriptable and dynamic inputs
  • 10. • Starting up the environment • Project Based • Can open just files, but projects allow for more options. • Integration with source control • SVN (Tortise and VisualSVN)/GIT/Others
  • 11. Project Deployment Models •Package Deployment Model • Stores packages in a disk based folder structure •Project Deployment Model • Deploys packages to a special database •Either model can be run outside of BIDS.
  • 12.
  • 13. • Connection Managers • These will set up the input/output files and database connections. • Can be set at project or package level. • Create DB Connection • Create Connections to any Files • Can create new files for output or input
  • 14.
  • 15.
  • 16. • Workflow using Pre-Built Components • Lots of options • Get Files, run commands, loop over things • Primarily Execute SQL and Data Flow Tasks • Connectors • Go/No Go, evaluation, data viewers • Red connectors re-direct on error.
  • 17. • Variables • Create at the package level • Set at the component level • Uses most Basic Types of variable classes • Ints, Strings, Booleans, Dates and Objects • Objects are typically Recordsets but can also be Arrays and COM objects.
  • 18. • File Connections • Multi-File pulls from Directories • QUERY Result sets • Web Services • OLEDB/ODBC Connections Getting Data Into Your Package
  • 19. • FTP Component • Built in and very simple • Does not do advanced FTP functions • HTTP File Requests • No built in component for this • Use Script or Command Line (wget)
  • 20. 4/10/14 • Data Flow Task • Heavy lifting of getting data from A to B • Utilizes the pre-defined connections • Can create them on the fly if necessary • Can transform data in the pipeline en-route to the destination tables/files
  • 21. 4/10/14 • Change the data in the pipeline • Can be helpful if you’re not a SQL person • Editors make choosing transformations easy • Performance can be impacted • Anything that impedes the pipeline slows the data transfer process down. • Becomes a larger issue with larger datasets
  • 22.
  • 23.
  • 24. 4/10/14 • Component Level Errors • Can Redirect Flow to another path • Allows for cleanup of temp tables/files, send Email to administrator • Data Flow Errors • Redirection of Bad Rows to an Error File • Can trap General or Truncation Errors.
  • 25.
  • 26. • For and For Each Containers • For Containers are basically count loopers • For Each Containers • Loops over files, arrays, and objects • Must be used with Variables • Great way to deal with sequential files
  • 27.
  • 28. • The Marketing Database of Choice! • Not terribly difficult to work with • Data is in UTF-8 format, Nvarchar → Varchar • Need special connection parameters to skip top level rows • Make Sure project Debug Options set to 32-bit
  • 29. • Report Format (multi-row records) • Most difficult format to work with • Conditional Split Transformer • Built in and works with the pipeline • Cursor and String Parsing • Allows for keeping rows grouped with IDs
  • 30. • XML • You must have a DTD • SSIS will create one for you • Data is in UTF-8 format • Either Transform to VARCHAR or use NVARCHAR for result
  • 31.
  • 32. • Cannot call packages directly from ColdFusion • Run manually through BIDS (easiest) • SQL Agent - Scheduler for SQL Server • Options for the Agent • Run the Agent on a schedule and look for work • Set up the Agent task and then execute via TSQL
  • 33. Executing a SQL Agent Job from TSQL You need to be in MSDB to run the Agent. Access to MSDB limited to SysAdmin roles. USE msdb ; GO EXEC dbo.sp_start_job N'AgentTaskName' ; GO
  • 34.
  • 35. • Data Validation – Delay Validation “YES” • SSIS will check for existence of Tables/Files. • Create temp tables beforehand or turn off. • Excel Files • Must use 32-bit debug execution mode. • Data Type conversions • Try importing to VARCHARs and convert afterwards if needed.
  • 36. • Learn SQL String Manipulation! • This is the toughest aspect of dealing with text files and textual data. • Very limited number of functions to use • Left(), Right, Substring(), Len() • CharIndex() and PatIndex() • String Length Math
  • 37. • Temp Tables • Where is TempDB? • #Table vs. ##Table vs. Temp_Table • Usage as part of aggregate queries • Make sure you have enough space for TempDB operations. • When dealing with large data sets, TempDB can get very large very fast.