| | |
insert into two tables
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Sep 2009
Posts: 10
Reputation:
Solved Threads: 0
Hi. on my form, the field are entered depending on availability. some fields are mandatory while others are optional. The mandatory fields are inserted into one table called Receipt while the optional ones are saved in the other table called receiptLine. When all the fields are filled in, then the two tables are updated. Otherwise when only the necessary fields are filled, the first table is not filled. instead an error is raised which is "String or binary data would be truncated. The statement has been terminated."
Look at the form below. The second panel is the one that is optional,
How should I solve it?
Thank you
Look at the form below. The second panel is the one that is optional,
How should I solve it?
Thank you
0
#2 Oct 12th, 2009
•
•
•
•
Hi. on my form, the field are entered depending on availability. some fields are mandatory while others are optional. The mandatory fields are inserted into one table called Receipt while the optional ones are saved in the other table called receiptLine. When all the fields are filled in, then the two tables are updated. Otherwise when only the necessary fields are filled, the first table is not filled. instead an error is raised which is "String or binary data would be truncated. The statement has been terminated."
Look at the form below. The second panel is the one that is optional,
How should I solve it?
Thank you
Try to check your fields table structure....Need to enlarge the columns width
NEVER NEVER NEVER GIVE UP
![]() |
Similar Threads
- simple Insert into 2 tables Gone Wild! (PHP)
- creating order/order detail insert forms (ASP)
- Bulk Insert/update in Access (Visual Basic 4 / 5 / 6)
- Any Tips for using Dreamweaver? (HTML and CSS)
- insert into sql select statement (Visual Basic 4 / 5 / 6)
- SQL problem - table names as variables (MS SQL)
- Tables (Java)
Other Threads in the ASP.NET Forum
- Previous Thread: label property problem in asp.net
- Next Thread: Saving Data to a sql database with asp.net
Views: 347 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 3.5 activexcontrol advice ajax asp asp.net bc30451 bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn checkbox child class click compatible confirmationcodegeneration content contenttype control countryselector courier css database datagrid datagridview datagridviewcheckbox datalist deadlock development dgv dropdown dropdownmenu dynamic edit feedback findcontrol flash flv folder form forms google grid gridview homeedition hosting iframe iis index javascript jquery list maps menu mono mssql multistepregistration nameisnotdeclared object objects order problem profile ratings refer rotatepage save search security serializesmo.table session silverlight smartcard sql suse textbox tracking typeof unauthorized update validation vb.net video view virtualdirectory vista visual-studio visualstudio vs2008 web webarchitecture webdevelopemnt webdevelopment wizard xml





