Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to come up with a view/CA model
Message
 
 
À
08/07/2009 12:23:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01410693
Message ID:
01410951
Vues:
40
>>>>>Is it working?
>>>>>I would remove [Models] from Tables property :-)
>>>>
>>>>Yes, I was thinking about it too a moment ago. Give me a second. Also, since my fields don't allow NULLs, may be I can use CAST(NVL(Cost,0) as N(10,2)) as Cost, etc. in the SelectCmd.
>>>
>>>Sure, every fields that not allow NULLs should be converted.
>>
>>BTW, one little detail - not sure if important. In the DealerOpts table the field is called Type, not cType. May be I should go ahead and better rename this field as cType - the DealerOpts table is new anyway. What do you think?
>
>
>BTW if you want the AutoInc field to be automatically populated after insert/update you should add these 4 properties:
>
>InsertCmdRefreshFieldList = "OPTSID"
>UpdateCmdRefreshFieldList = "OPTSID"
>InsertCmdRefreshCmd       = "SELECT OPTSID FROM DealerOpts WHERE OPTSID = GETAUTOINCVALUE()"
>UpdateCmdRefreshCmd       = "SELECT OPTSID FROM DealerOpts WHERE OPTSID = GETAUTOINCVALUE()"
>
Thanks a lot again - give me a second to change table structure in Data Dictionary, change one extra program and then I would implement your suggestions and re-try.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform