Solved

Import excel file

Posted on 2006-11-14
3
451 Views
Last Modified: 2008-01-09
I have a excel file im trying to import with fields cpmt_id , fk_emp_id , cpmt_date, cpmt_amount, cpmt_created_by,

I go to the import wirzard and select first row does not contain headers
map the source and destination go to edit and tell it to ignore the first row
then run it and get this error

Warning 0x80047076: Data Flow Task: The output column "F1" (15) on output "Excel Source Output" (9) and component "Source - Sheet1$" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance.
 (SQL Server Import and Export Wizard)
 
Can anyone help

Thanks
0
Comment
Question by:fsuedu
  • 2
3 Comments
 
LVL 29

Expert Comment

by:Gautham Janardhan
ID: 17939040
after selecting the source and destination

go to transformation and map only the wanted columns
0
 
LVL 11

Accepted Solution

by:
MacNuttin earned 500 total points
ID: 17940888
Try run this from SQL Query Analyser:

INSERT INTO YourTable
Select cpmt_id , fk_emp_id , cpmt_date, cpmt_amount, cpmt_created_by from OpenDataSource( 'Microsoft.Jet.OLEDB.4.0', 'Data Source="C:\Path\YourExcelFile.xls";Extended properties=Excel 8.0')...Sheet1$
0
 
LVL 11

Expert Comment

by:MacNuttin
ID: 17940908
You will need a header row in excel file
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question