>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.comSET RANT ON - The Wombat BlogLife isn’t a morality contest and purity makes a poor shield. - J. Peter MulhernDisclaimer: 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.