kcwallace Posted October 2, 2006 Posted October 2, 2006 Can someone tell me why I am getting this error {"Specified cast is not valid."} The code: SqlDataReader dr = setDataReader(CntSQL, connection); long retVal=dr.GetInt64(0); The returned value from the database is 2776842 Quote Go Beavs!!!
kcwallace Posted October 2, 2006 Author Posted October 2, 2006 You mean the "Go Beavs!!!" error? I accidently hit the submit button. Quote Go Beavs!!!
Leaders snarfblam Posted October 2, 2006 Leaders Posted October 2, 2006 Yeah, I figured that out after I posted my reply because when I posted my reply I saw your fixed post. So I deleted my reply. So yeah... Quote [sIGPIC]e[/sIGPIC]
kcwallace Posted October 2, 2006 Author Posted October 2, 2006 I naturally firgured it out right after posting my question Convert.ToInt64(dr[0]) Quote Go Beavs!!!
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.