Home / General / SSIS: Lookup from Text Files
digWin is a community news sharing site for Microsoft Techies. Share interesting news/links and rate them!

SSIS: Lookup from Text Files

Ever want to do a lookup on a text file without putting it in a database or using a merge join?


Grant from the Project REAL team found a great nugget:


Openrowset now allows the BULK clause to be specified which accepts a filename and format specification. An OLE-DB driver for flat-files or XML would also do the job but this is a nice work-around for the native stack. The only difficulty is getting your head around the format for the .fmt file but after that it 'just works':


    select *     from openrowset(bulk N'c:\temp\test.txt', form








Microsoft news, tips and tricks search

Comments


Post voted by 1 digWinners


Featured Links

User

Login | Register




Forgot Password?

Sponsor

Anti spam filter for mail servers
Anti spam, anti phishing and email management software for Exchange/SMTP/Lotus. Download a FREE trial!

Featured

Download Free Exchange Ebook

Categories

Upcoming NEW

Recent comments

Related Sites