473,403 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Updating a table with over 100 fields

I've a table with over 100 fields and when I update a record in ADO.NET (on
a web form), it crashed out with expression is too complex.

But it works for adding a new record. It also works with ADO in VB6. This is
definitely a bug (since .NET 1.0) if it works for add but not update.

I know some responses will be to split the table - but just assume that it
cannot be normalise.

Any help greatly appreciated.

TIA
Young
Nov 21 '05 #1
4 869
"zMisc" <yo********@hotmail.com> wrote in message
news:Xi*******************@news-server.bigpond.net.au...
I've a table with over 100 fields and when I update a record in ADO.NET
(on a web form), it crashed out with expression is too complex.


Sounds like you're building up dynamic SQL. If so, create a parameterised
stored procedure instead, and pass the values in through a Parameters
collection.
Nov 21 '05 #2
Young,
But it works for adding a new record. It also works with ADO in VB6. This
is definitely a bug (since .NET 1.0) if it works for add but not update.

Are you really thinking that you are the only one who is updating in the
world using VSNet.

Cor
Nov 21 '05 #3
Can you post the code that demonstrates the problem?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 28 Sep 2005 04:51:03 GMT, "zMisc" <yo********@hotmail.com>
wrote:
I've a table with over 100 fields and when I update a record in ADO.NET (on
a web form), it crashed out with expression is too complex.

But it works for adding a new record. It also works with ADO in VB6. This is
definitely a bug (since .NET 1.0) if it works for add but not update.

I know some responses will be to split the table - but just assume that it
cannot be normalise.

Any help greatly appreciated.

TIA
Young


Nov 21 '05 #4
I had the same issue, and decided to refine my record structures. I
tend to save 100 textfield forms into one single field with a lookup
key, and possibly some summary fields . [In Oracle I use the clob data
type.]. This type of system works great and is amazingly efficient. I
wrote a system that stores contractor invoives for my company that
stores thousands of records a month with this system and it has been
amazingly responsive. In some cases I additionally add in summary
columns that allow me to quickly calculate numbers for various reports
that would otherwise have to dig into these larger rows of data.

The down fall is that it takes programmed systems to get at the details
within these compressed fields....

-Peter

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Jason | last post by:
Let's say I have an html form with 20 or 30 fields in it. The form submits the fields via POST to a php page which updates a table in a database with the $_POST vars. Which makes more sense? ...
1
by: Srinadh | last post by:
Hi all, We have files with about 20 to 30 fields per row. We are trying to update such files with about 60 rows as contiguous data in a CLOB field. It passes through. But when we try...
2
by: RBohannon | last post by:
I had some help on this one earlier, but I'm still having a bit of trouble. I'm sure it's something simple that I just don't know. I'm using Access2000. I have one table with employee salary...
4
by: Laura | last post by:
Here's the situation: I'm trying to use an update query to copy data from one row to another. Here is the situation: I have 5 companies that are linked to each other. I need to show all 5...
5
by: Richard Stanton | last post by:
Hello all My database has a main form linked to table1. It has several subforms on the main form, all linked to table2. Table1 and Table2 are linked by primary/foreign key, no duplicates...
4
by: Dave Taylor | last post by:
I've been using the dataset designer in Visual Studio to create typed datasets for my application by dragging over tables from the Server Explorer and dropping them into the designer. The problem...
4
by: Geoff | last post by:
Hi I'm hoping somebody can help me with the following problem that has occurred to me. Suppose I have two tables in an SQL Server database. Let's call these tables A and B. Assume that A has...
3
ebs57
by: ebs57 | last post by:
I am looking for some basic help in understanding and setting up table relationships in Access. I've created one table called PROJECTS and it has the field JobNo which I've declared as the key...
4
by: AlexNunley | last post by:
I've adopted a moderately sized (65k records) active use database (Access 2000, Windows XP). One of the most commonly used forms is whats called the RMA generation field, used to add claim...
2
by: =?Utf-8?B?VmFuZXNzYQ==?= | last post by:
Hi All! I am with a situation where I am not getting the right updating to the form's fields. The situation is the following one: I have one combobox and one textbox. I am using the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.