Solved

Import excel file

Posted on 2006-11-14
3
446 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Viewers will learn how the fundamental information of how to create a table.
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.

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now