User-1725652363 posted
I have a bunch of excel that I should read them, but every file has a specific columns
OleDbCommand cmd = new OleDbCommand("SELECT [cl1], [cl2] FROM [" + sheet+ "]", connexion);
The prolem is cmd always has a value not null so I can't test with null and do something like this:
if(cmd == null){
cmd = new OleDbCommand("SELECT [l3], [l4] FROM [" + sheet+ "]", connexion);
}
Any other test to do?
Thanks