Use the Text data type for fields which need to store large amounts of text, rather than large varchar fields. Alternatively, if that's not an option, create child tables with a one-to-one relationship to store the extra data.
Dan -----Original Message----- From: Andy and Kim Mills [mailto:[EMAIL PROTECTED] Sent: 21 January 2005 14:07 To: [email protected] Subject: Re: Re: [ASP] SQL Error - Maximum Row Size Paul: Thank you for the respose. I guess I was asking: is there a way to increase the maximum row size, or do I need to alter the tables? From my understanding of your post: it seems I would need to decrease the row sizes, correct? Thanks Andy ----- Original Message ----- I believe the error is caused because the total size of the fields in a row of your temp table = 9414. You have to limit the total size to 8060 or less. ----- Original Message ----- From: "Andy and Kim Mills" To: Sent: Friday, January 21, 2005 1:52 PM Subject: [ASP] SQL Error - Maximum Row Size > >Hello Everyone: > >I have been charged with looking into a loss of data. When I go into the Stored Procedure on SQL Server and step through the code: I am getting the folloring error: > >Warning: The table 'tempAlbum' has been created but its maximum row size (9414) exceeds the maximum number of bytes per row (8060). INSERT or UPDATE of a row in this table will fail if the resulting row length exceeds 8060 bytes. > >This stored Procedure creates a TEMP table and inserts values into it. However: as you will notice, it is exceeding the maximum row size by a significant amount: hence we are losing data when the INSERT happens, as all data after byte 8060 is being set to NULL. > >My question is: how do I correct this to allow all the data to be inserted? I have never seen this error before, so not sure exactly how to fix it. I guess I could alter the SP to insert directly into the table itself, but this would be a MAJOR re-write and I would like to avoid that if possible. > >Thanks for any help > Andy > > > >--------------------------------------------------------------------- >Home : [http://groups.yahoo.com/group/active-server-pages]http://groups.yahoo.c om/group/active-server-pages >--------------------------------------------------------------------- > Post : [email protected] > Subscribe : [EMAIL PROTECTED] > Unsubscribe: [EMAIL PROTECTED] > --------------------------------------------------------------------- >Yahoo! Groups Links > > > > > > > --------------------------------------------------------------------- Home : [http://groups.yahoo.com/group/active-server-pages]http://groups.yahoo.c om/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Sponsor ADVERTISEMENT [http://us.ard.yahoo.com/SIG=1297libkk/M=297844.5692940.6932969.3356155/ D=groups/S=1705115381:HM/EXP=1106402610/A=2533537/R=0/SIG=10v7of2am/*htt p://www.target.com/careers] ------------------------------------------------------------------------ -------- Yahoo! Groups Links * To visit your group on the web, go to: [http://groups.yahoo.com/group/active-server-pages/] http://groups.yahoo.com/group/active-server-pages/ To unsubscribe from this group, send an email to: [mailto:[EMAIL PROTECTED] ibe] [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the [http://docs.yahoo.com/info/terms/]Yahoo! Terms of Service . [Non-text portions of this message have been removed] --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
