Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserts, SQL and Nulls
Message
De
30/10/2001 13:08:25
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
À
30/10/2001 13:03:55
John Deupree
Long Term Care Authority
Tulsa, Oklahoma, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00575195
Message ID:
00575197
Vues:
21
>I know it's common practice in VFP to not allow nulls. I assume this is also the case in SQL server. My problem is that when I do an SQL INSERT to insert a blank record for editing, any field left 'blank' is actually null filled and the insert fails. Two solutions come to mind. 1. Set a default value for each field in the SQL table (or VFP remote view). 2. Cycle through the record checking for nulls. Is there a better way? Should I allow nulls?
>
>TIA
>
>John

John can be common practice when you where developing old fox applications now is not that common if the fields are optional then you should let them be null.
Alexandre Palma
Senior Application Architect
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform