Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing date to procedure
Message
From
16/05/2002 11:53:14
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00657472
Message ID:
00657537
Views:
32
Hi Daniel,

You are the man exec sp_create_translator '2002-05-16' worked.

Thanks
Jim

>>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).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform