CHAPTER 2

image

Flat File Data Sources

For more years than most of us care to remember, the single most common source of external data facing an SQL Server developer or DBA was a text file. The inevitable consequence of the near ubiquity of the “flat” file is the minor ecosystem of tools and techniques that has grown over time to help us all load text file data sources into SQL Server.

Faced with such a plethora of solutions, the main approaches that I examine in this chapter are the following:

  • The Import/Export Wizard
  • SSIS
  • OPENROWSET and OPENDATASOURCE
  • BULK INSERT
  • Linked servers
  • BCP

All have their advantages and drawbacks, as you would expect. The ...

Get SQL Server 2012 Data Integration Recipes: Solutions for Integration Services and Other ETL Tools now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.