Click here to Skip to main content
15,903,362 members
Home / Discussions / Database
   

Database

 
AnswerRe: Heterogeneous Database; What will you do? Pin
Eddy Vluggen10-Nov-11 10:51
professionalEddy Vluggen10-Nov-11 10:51 
AnswerRe: Heterogeneous Database; What will you do? Pin
Mycroft Holmes13-Nov-11 6:20
professionalMycroft Holmes13-Nov-11 6:20 
AnswerRe: Heterogeneous Database; What will you do? Pin
SilimSayo14-Nov-11 15:35
SilimSayo14-Nov-11 15:35 
Questionstring truncation Pin
Luc Pattyn9-Nov-11 10:37
sitebuilderLuc Pattyn9-Nov-11 10:37 
AnswerRe: string truncation Pin
jschell9-Nov-11 11:21
jschell9-Nov-11 11:21 
GeneralRe: string truncation Pin
Luc Pattyn9-Nov-11 11:24
sitebuilderLuc Pattyn9-Nov-11 11:24 
GeneralRe: string truncation Pin
SilimSayo9-Nov-11 14:59
SilimSayo9-Nov-11 14:59 
AnswerRe: string truncation Pin
Luc Pattyn9-Nov-11 15:11
sitebuilderLuc Pattyn9-Nov-11 15:11 
Maybe I didn't explain well enough, but it isn't a one-off situation that I am trying to resolve.

My app holds a number of tables and dialogs; each dialog holds TextBoxes (and other Controls), and the strings entered in the TextBoxes is going to be inserted or updated in the tables. Think of people's first and last name, addresses, phone numbers, a comment line, some preferences, and many more. Right now there is no protection against overflow, as TextBoxes allow an unlimited amount of text to be entered (and the GUI is unaware of the table field widths anyway). So it is at run-time that the users might enter too much text in any of a large number of fields; the fields are quite sufficient for the intended use, but nothing is preventing abuse. So I want:

1. to make sure my app behaves well no matter what the input is;
2. provide detailed feedback where necessary (such as "Phone number cannot exceed 50 characters").

One way to remedy the situation would be to populate, at start-up, some data structures describing all relevant field widths, and pass this to the GUI stuff, so it can check all the lengths and warn the user, before attempting an insert/update. However that seems more effort than elegance, hence me asking about some best practices and/or easy solutions.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralRe: string truncation Pin
_Damian S_9-Nov-11 15:22
professional_Damian S_9-Nov-11 15:22 
AnswerRe: string truncation Pin
Luc Pattyn9-Nov-11 15:34
sitebuilderLuc Pattyn9-Nov-11 15:34 
GeneralRe: string truncation Pin
_Damian S_9-Nov-11 15:56
professional_Damian S_9-Nov-11 15:56 
GeneralRe: string truncation Pin
Luc Pattyn9-Nov-11 16:08
sitebuilderLuc Pattyn9-Nov-11 16:08 
GeneralRe: string truncation Pin
jschell10-Nov-11 8:27
jschell10-Nov-11 8:27 
GeneralRe: string truncation Pin
Luc Pattyn10-Nov-11 9:47
sitebuilderLuc Pattyn10-Nov-11 9:47 
GeneralRe: string truncation Pin
PIEBALDconsult9-Nov-11 15:09
mvePIEBALDconsult9-Nov-11 15:09 
QuestionRe: string truncation Pin
Luc Pattyn9-Nov-11 15:15
sitebuilderLuc Pattyn9-Nov-11 15:15 
AnswerRe: string truncation Pin
PIEBALDconsult9-Nov-11 15:37
mvePIEBALDconsult9-Nov-11 15:37 
GeneralRe: string truncation Pin
Luc Pattyn9-Nov-11 16:02
sitebuilderLuc Pattyn9-Nov-11 16:02 
GeneralRe: string truncation Pin
PIEBALDconsult9-Nov-11 16:08
mvePIEBALDconsult9-Nov-11 16:08 
GeneralRe: string truncation Pin
Luc Pattyn9-Nov-11 16:27
sitebuilderLuc Pattyn9-Nov-11 16:27 
GeneralRe: string truncation Pin
PIEBALDconsult9-Nov-11 16:56
mvePIEBALDconsult9-Nov-11 16:56 
GeneralRe: string truncation Pin
_Damian S_9-Nov-11 16:32
professional_Damian S_9-Nov-11 16:32 
GeneralRe: string truncation Pin
Luc Pattyn9-Nov-11 16:59
sitebuilderLuc Pattyn9-Nov-11 16:59 
GeneralRe: string truncation Pin
jschell10-Nov-11 8:21
jschell10-Nov-11 8:21 
GeneralRe: string truncation Pin
Luc Pattyn10-Nov-11 8:35
sitebuilderLuc Pattyn10-Nov-11 8:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.