c# - assigning a string to a string variable throwing Arithmetic operation resulted in an overflow, -


while processing following code getting error.

querycommand= "select user_name,user_lastname,user_address usertable" objodbcdatareader = dbconobject.getdatareader(querycommand) if objodbcdatareader.hasrows = true    dim username = objodbcdatareader.item("user_name").tostring() 'here throws error arithmetic operation resulted in overflow end if 

getdatareader method that accept query string , return result datareader.

let me know why error occurring while assigning string value string variable?

am using

visualstudio 2012 mysql 5.0 odbc driver 3.51 64 bit os 

in if statement testing see if rows exist,

at point have not read data?

querycommand= "select user_name,user_lastname,user_address usertable" objodbcdatareader = dbconobject.getdatareader(querycommand) if objodbcdatareader.hasrows = true   objodbcdatareader.read()   lsfinyear = objodbcdatareader.item("user_name") 'here throws error arithmetic operation resulted in overflow end if 

Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -