Is it possible to format a column in an excel destination in ssis before generating it? I'm thinking a script task? I want to format a column to be date/time format within the excel spreadsheet
相关问题
- sql execution latency when assign to a variable
- What is the best way to cache a table from a (SQL)
- php PDO::FETCH_ASSOC doesnt detect select after ba
- Bulk update SQL Server C#
- Excel sunburst chart: Some labels missing
相关文章
- Entity Framework 4.3.1 failing to create (/open) a
- Code for inserting data into SQL Server database u
- Get column data by Column name and sheet name
- SSIS solution on GIT?
- Delete Every Alternate Row in SQL
- programmatically excel cells to be auto fit width
- Linux based PHP install connecting to MsSQL Server
- SQL Azure Reset autoincrement
You can use
Microsoft.Interop.Excel
library and useNumberFormat
property to changeEntireColumn
format to datetime.Note: you have to add
Microsoft.Office.Interop.Excel.dll
file to the following directories (.Net Framework dll directory)C:\Windows\Microsoft.NET\Framework\v2.0.50727
and (sql server data tools dll directory)C:\Program Files\Microsoft SQL Server\100\DTS\Binn
(if using vs 2005 and sql 2008) and then add this dll as a reference in your script taskReferences