Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:

while importing one excel into the database some column values coming null..what problem it could be.

Posted

Hi,

Check this...Simple way to import data into sql server/[^]

I think you have to check data, data length, data type.

Hope this will help you.

Cheers
 
Share this answer
 
SQL
SELECT * INTO Tablename FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=C:\test\xltest.xls', 'SELECT * FROM [Customers$]')
 
Share this answer
 
v2
Comments
Member 11337367 24-Mar-15 6:51am    
In my system Microsoft.Jet.OLEDB.4.0 not been installed.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900