_ | 覦覈襦 | 豕蠏手 | 殊螳 | 譯殊碁
FrontPage › SSIS-ExportingToExcel2007-.xslxVs..xslb


Douglas blogged about this a while back, but its come up a couple of times in the last little while, so I thought Id repeat it here.

The Excel 2007 default output format for the SSIS Excel Destination is Excel Binary Format (.xslb). If youre creating a new Excel file, and have given it an .xslx extension, youll get the following error when trying to open it in Excel:

Excel cannot open the file xxx.xslx because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file.

If you want the Excel Destination to output a standard .xslx file (Excel XML Format), youll need to tweak your Excel Connection Managers connection string property.

By default it will look something like this:

Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\path\xxx.xlsx;Extended Properties="Excel 12.0;HDR=YES";

Changing Excel 12.0 to Excel 12.0 Xml will tell the provider to output in .xslx format instead.

Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\path\xxx.xlsx;Extended Properties="Excel 12.0 XML;HDR=YES"
蠍 蠍郁鍵..
企: : るジ讓曙 襦螻豺 企Ν 譯殊語. 襦螻豺
EditText : Print : Mobile : FindPage : DeletePage : LikePages : Powered by MoniWiki : Last modified 2018-04-13 23:12:53

覈 旧 蟆覲企る 蟇郁鍵 るジ 讌覓語 螳讌 蟆 . ( 磯)