Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Empty Date Values
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
01051194
Message ID:
01051519
Views:
7
>Hello All, pulling my hair out over this one, how do I pass an empty date value ( equivalent to VFP's { \ \ } ) to a SQL Server stored proc using ADO.NET and C#, I've tried sending empty strings which works from VFP using ODBC but returns an error "Cannot convert empty string to DateTime type", the problem I have is these date values are string values from textboxes and are not always populated, if I set them to null the SP works ( is this the proper way to go in SQL ? ) any help much...


If you are a UTMag subscriber, see my January 2005 column. I explain how to handle it.

PS: my articles are also available at http://pages.videotron.com/emoreau/
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform