Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dates in Parameterized SQL Server View
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Dates in Parameterized SQL Server View
Divers
Thread ID:
00387959
Message ID:
00387959
Vues:
72
I am creating a remote SQL Server view that uses parameters. There are character parameters passed and a date parameter. The user can fill in as many parameters as they want and before the remote view is queried I fill in the rest of the character based parameters with the "%" character. All the character parameters use the LIKE comparison.

My problem is how to define the date parameter. If the user does not enter a date then I need to put something in for the parameter like the "%" for the character parameters. What would that be? In addition, what comparison do I use? The data in the table may or may not actually have data in the date field which would mean special considerations would need to be made for empty dates (stored as 1/1/1900)

Any help with how I would do this would be very helpful.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform