Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing date to procedure
Message
From
16/05/2002 11:08:22
 
 
To
16/05/2002 10:57:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00657472
Message ID:
00657491
Views:
18
>Hello group,
>
>I have a procedure:
>
>CREATE PROCEDURE sp_create_translator
>@SchoolYear smalldatetime
>AS
>How do I exec this from the sql server query analyzer. Exec '01/01/2002' doesn't work or {01/01/2002 }either.
>
>Thanks
>Jim

It depends on the current format of the datetime "phrase" (for lack of a better term). Remember too that time is part of the value being stored.

If you do a SELECT GETDATE() in QA you can see the pattern that dates are displayed in. For example, I get '2002-05-16 10:05:17.330' (for a SMALLDATETIME, lop off the milliseconds).
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform