May 31, 2013 at 6:05 am
I have an excel sheet . having different data column One column having data like
Effiency
=======
70%
80%
50%
Column format = [<0]"";0%
when I importing data from excel to sql server this column shows blank values in sql server I am using
OPENROWSET
SELECT Effiency
FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0',
'Excel 12.0;Database=E:\BI\Excel_Source_File\CS_Source_File\Camp201201231.xlsx',
'SELECT * FROM [Detailed_report$B7:AP39]'
)
I also use option IMEX=1 and used OPENDATASOURCE no change same issue.
Is there anyway that I can transfer data from excel to SQL Server and formatting ignored during transformation.
Urgent and thanks in advance.
Regards,
Naseer Ahmed
May 31, 2013 at 6:35 am
Formatting has nothing to do with your problem. Most likely you defined a wrong range.
You can try SSIS for getting date from Excel to SQL. Using SSIS, you will see straight away what data is included from the source.
May 31, 2013 at 7:47 am
THANKS FOR REPLYING,
I will check with SSIS also same problem is there. I also check the range the range is fine.
Regards,
Naseer Ahmed
May 31, 2013 at 7:49 am
Is there any formula in this column?
May 31, 2013 at 8:03 am
Hi,
No, simple value with the above format. when I convert this column to General format it working fine in both format means ( by query and with SSIS) and column of values become
change. like.
Efficiency
----------
0.72345
0.54354
0.23678
Regards,
Naseer Ahmed
May 31, 2013 at 10:33 am
can you see these values in SSIS when configuring data source?
June 3, 2013 at 3:57 am
Yeah, Same problem when I using SSIS Package.
Regards,
Naseer Ahmed
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply