Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 25th, 2005, 10:08 AM
Registered User
 
Join Date: Feb 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default DB works.....then it doesn't

For some reason my simple address db will work fine and then 1 or 2 entries later, I recieve a "DB overflow Error" listed below.

Does anyone know what I am doing wrong?

Server Error in '/' Application.
--------------------------------------------------------------------------------

Overflow
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.OleDb.OleDbException: Overflow

Source Error:


Line 90: dbCommand.Parameters.Add(cmtsParam);
Line 91:
Line 92: dbCommand.ExecuteNonQuery();
Line 93:
Line 94: dbConnection.Close();


Source File: C:\ASP.NET\data\CommandExecuteII.aspx Line: 92

Stack Trace:


[OleDbException (0x80040e57): Overflow]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextE rrorHandling(Int32 hr) +41
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextF orSingleResult(tagDBPARAMS dbParams, Object& executeResult) +122
   System.Data.OleDb.OleDbCommand.ExecuteCommandText( Object& executeResult) +92
   System.Data.OleDb.OleDbCommand.ExecuteCommand(Comm andBehavior behavior, Object& executeResult) +65
   System.Data.OleDb.OleDbCommand.ExecuteReaderIntern al(CommandBehavior behavior, String method) +112
   System.Data.OleDb.OleDbCommand.ExecuteNonQuery() +66
   ASP.CommandExecuteII_aspx.btnRun_Click(Object sender, EventArgs e) in C:\ASP.NET\data\CommandExecuteII.aspx:92
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +83
   System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +57
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +18
   System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
   System.Web.UI.Page.ProcessRequestMain() +1277




 
Old February 25th, 2005, 01:35 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

try to execute the query separately

Ahmed Ali
Software Developer
 
Old March 4th, 2005, 04:37 PM
Registered User
 
Join Date: Mar 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have had some similar problems. It might be something to do with type conversion problems. Try it in debug mode and see whether you are passing the correct data types to query.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Works in IE but not in FF sofiacole Pro JSP 1 September 12th, 2007 11:20 PM
Finding the DB Sailor.mdb of Beginning ASP DB book anna Classic ASP Databases 2 August 5th, 2006 01:13 PM
works bryan.lugo Excel VBA 0 April 19th, 2006 02:47 PM
DB works.....then it doesn't shyster1977 Classic ASP Databases 2 March 9th, 2005 02:57 PM
will the session works? rekha_jsr Classic ASP Basics 3 December 10th, 2004 02:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.