Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Optimizing this query
Message
De
15/03/2006 16:19:42
 
 
À
15/03/2006 16:14:16
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Divers
Thread ID:
01104684
Message ID:
01104704
Vues:
6
>>Store the value of Framework.DateFunction.GetEmptyDate() to a local variable so it doesn't get fired with every loop. For that matter, you could just say:
>>
>>
>>"SET MitTelLog.XMLDowndt=NULL"
>>
>>
>>and not use the function. SQL doesn't allow empty date values anyway.
>
>Using NULL will return a message saying that the null value is not accepted. This is why the function returns a universal date of 30/12/1899 00:00:00.

OK. I would still store that universal date to a variable so the GetEmptyDate() doesn't fire all of the time.
Dan LeClair
www.cyberwombat.com
SET RANT ON - The Wombat Blog

Life isn’t a morality contest and purity makes a poor shield. - J. Peter Mulhern
Disclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform