Solved

Import excel file

Posted on 2006-11-14
3
454 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

688 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