If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Update error: Too many fields

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-06-04, 03:41
aspdevelop aspdevelop is offline
Registered User
 
Join Date: Apr 2004
Posts: 4
Update error: Too many fields

When I'm trying to update a record with my asp page on my Access database im getting the "too many fields error". The table has 180 columns, can anybody help? INSERT and DELETE works fine!
Reply With Quote
  #2 (permalink)  
Old 05-06-04, 12:04
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
Can you post your Update statement, or so come code we can look at?

On a side note, 180 columns is WAY to many for a single table.. you need to normalize that thing. I wouldn't do 180 columns in ANY DB let alone Access...
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
  #3 (permalink)  
Old 05-07-04, 02:57
aspdevelop aspdevelop is offline
Registered User
 
Join Date: Apr 2004
Posts: 4
My code...

Thanks for the interest Seppuku! It's true that I have to normalize my db...
The txt attachment is my code so maybe you can have a look and help me
althought the 180 columns!
Attached Files
File Type: txt contacts_edit_update.txt (95.7 KB, 38 views)
Reply With Quote
  #4 (permalink)  
Old 05-07-04, 10:09
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
Wow, you're updating every single column in a single update?

My initial thought is that updating 180 columns in a single update is out of the range of the DB driver. If you're set on this table having 180 columns, you may want to try to break it into several smaller updates inside of a transaction.
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
  #5 (permalink)  
Old 05-10-04, 05:37
aspdevelop aspdevelop is offline
Registered User
 
Join Date: Apr 2004
Posts: 4
Worked!

Thanks Seppuku!
I've broken the single 180 columns update into 18 smaller updates and it worked.
Reply With Quote
  #6 (permalink)  
Old 05-10-04, 10:47
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
Make sure you wrap all of your updates within a single transaction. If one of those updates fails, you'll want to rollback the entire transaction, otherwise some of your data will be updated, some will not, and you'll have a hell of a time cleaning up (especially with 180 columns)
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On