Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I am using Micrsoft excel 8.0 version using Oledb connection.

I have one Excel template it has alomst all 10000 rows , in that it has only first 3 rows data.

While filling into data table using OledDb, it is inserting 10000 records into data table. but I want like, rows which have data only. means it should insert only 3 records into data table.

How it can be possible. Can any one help on this?
Posted

1 solution

What does your insert query look like? Adding a null check into your where statement (or select statement for that matter) should do it.
 
Share this answer
 

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