c# - what to check for when a datareader might not have a particular column? -


I am doing a redundancy test, but when I am doing, I'm getting an exception to the limit:

  If (myReader ["column1"]! = Null) {}  

under certain conditions that column will not exist, why not a redundant investigation doing work?

Check to see if the column already exists

  For (int i = 0; i  

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -