Ssis tips tricks l.jpg
This presentation is the property of its rightful owner.
Sponsored Links
1 / 7

SSIS tips & tricks PowerPoint PPT Presentation


  • 154 Views
  • Uploaded on
  • Presentation posted in: General

SSIS tips & tricks. Peter Doyle. File Formats . Identify the file formats correctly Notepad2.exe seems good for identifying UTF-8 versus ANSI Beware processing an ANSI file as UTF-8 as you will lose characters like umlaut ü and accented é XML default format is UTF-8. Embedded quotes.

Download Presentation

SSIS tips & tricks

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Ssis tips tricks l.jpg

SSIS tips & tricks

Peter Doyle


File formats l.jpg

File Formats

  • Identify the file formats correctly

  • Notepad2.exe seems good for identifying UTF-8 versus ANSI

  • Beware processing an ANSI file as UTF-8 as you will lose characters like umlaut ü and accented é

  • XML default format is UTF-8


Embedded quotes l.jpg

Embedded quotes

  • SSIS doesn’t seem to handle comma separated files with embedded quotes

  • Access and Excel can?

  • My solution is to pre-parse the file with a regular expression and replace commas with tabs

  • Use regex buddy to help with regular expressions (another dark science)


Manipulating variables l.jpg

Manipulating variables

  • Have demonstrated two approaches in now famous Package3.dtsx (within a sql task or script task)

  • Use http://www.simple-talk.com/sql/sql-tools/passing-variables-to-and-from-an-ssis-task/ as a reference

  • Probably using script task is more intuitive


Looping l.jpg

Looping

  • Main thing to note is setting the connectionstring of the connection so that it becomes dynamic


Slide6 l.jpg

FTP

  • For looping through multiple FTP sites. Have to code around this as passwords cannot be set dynamically on FTP widget

  • I used FtpClientConnection object (see code)

  • For recordset variables you need an object of System.Object

  • Demo configurations also


Zipping l.jpg

Zipping

  • There is no widget so you will have to concoct your own solution

  • Batch files don’t work with unc’s

  • Use execute process task and live with the syntax which is frustrating


  • Login