Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

SSIS - ForEach Loop Container (Excel load)

$
0
0
Hi,Having a problem getting a package to work.This package is supposed to load multiple sheets, from a single Excel workbook, into SQL Server 2014.I am using Visual Studio 2012 Integrated (Shell) and this works very well with every other package I have deployed.The problem is that it gets stuck on the first tab, loops round that multiple times, and does not move to next tab.So the user variable is set to the sheet name for the first tab, and then iterates exactly 9 times before hanging.I have set up the package as follows: * using ForEach loop container * collection enumerator = "ForEach ADO .NET Schema Rowset Enumerator" * Excel file connection = ".NET Provider for OLE DB" * Provider = "Microsoft Office 12.0 Access Database Engine OLE DB Provider" * Extended Properties = "Excel 12.0;HDR=YES" * Schema = "Tables" * added new User variable "User::SheetName" * set Index = 2 * within Data Flow Task, set Excel connection as ADO.NET connection * data access mode = "Table or View" * within DFT, mapped "[ADO NET Source].[TableOrViewName] property expression to "User::SheetName" * because the package doesn't have a sheet name prior to execution, I have set DelayValidation = True * set executable as 32-bit runtimeWhat am I missing?

Viewing all articles
Browse latest Browse all 3145

Trending Articles