| | |
insert into two tables
Please support our ASP.NET advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
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: 351 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 activexcontrol advice ajax alltypeofvideos anathor application asp asp.net bc30451 bottomasp.net box browser button c# checkbox commonfunctions complex connection dataaccesslayer database datagridview datagridviewcheckbox datalist development dgv dropdownlist dynamically edit editing expose feedback fileuploader fill flash form formatdecimal formview google gridview gudi iframe iis javascript list listbox login microsoft migration mono mouse mssql news numerical opera panelmasterpagebuttoncontrols parent problem project radio redirect registration relationaldatabases reportemail richtextbox rows save schoolproject search security select services session silverlight smartcard smoobjects software sql sql-server sqlserver2005 suse textbox theft tracking unauthorized validation vb.net video videos view vista visualstudio web webapplications webdevelopemnt webprogramming webservice xsl youareanotmemberofthedebuggerusers





