473,473 Members | 1,805 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 19 '05 #1
4 1012
"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 19 '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 19 '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 19 '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 19 '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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.