c# - how to stop insertion into database -


can stop inserting database if cells empty checking cell values

are getting values database? might need check isdbnull(dt.rows[i][j]). also, not sure if source of problem, checking if string equal value, can use string.equals(). in if statement, do

if (isdbnull(dtrows[i][j]) or dt.rows[i][j].equals("")) {     //code empty data } 

if you're not getting data db, wouldn't hurt check null or nothing value, not "" empty string value.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -