I wanted to learn which usage is true?
if(!string.IsNullOrEmpty(parentID)) cmd.Parameters.Add(new SqlParameter(\"@ParentSesID\", parentID)); else cmd.Param
DBNull.Value.ToString() will return empty string, so I think
cmd.Parameters.Add(new SqlParameter("@ParentSesID", DBNull.Value));
is a good approach and here the only approach
see here:
http://ideone.com/iGo1Jh