Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing a NULL date into a stored procedure
Message
De
09/09/2007 00:16:00
 
 
À
05/09/2007 14:51:55
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
VB 8.0
Divers
Thread ID:
01252330
Message ID:
01253256
Vues:
15
>That's what I ended up having to do. Thanks for the input!

Better late than never, I always say. <g>

~~Bonnie




>
>>I haven't tried it Mike, because we don't pass NULLs to our Procs, but are you setting the parameter to DBNull.Value? I think just plain old null (or nothing as you VB guys like to say <g>) isn't going to work.
>>
>>~~Bonnie
>>
>>>>>I am getting a StrongTypingException when I try to pass a NULL date into my SPROC. What is the preferred way of doing this? I know I can set the default value in the SPROC and just not pass the parm, but is there a way to specifically pass a NULL date?
>>>>>
>>>>>Thanks!
>>>>
>>>>dim myDate as Nullable(of DateTime)
>>>>
>>>>should work in VB but I'm not sure.
>>>>
>>>>Cetin
>>>
>>>So I can pass a nullable datetime variable as a parameter into my SPROC?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform