Hello,
I have two datetime parameters in stored proc.But when I run it in crystal reports its gives error.If I change datatype to varchar then it runs ok.
Please Advice.
Thanx
I prefer to use varchar or char for date parameters in a stored procedure. SQL will handle the conversion if comparing to a datetime field in a query. I've had far fewer difficulties when using these data types to pass dates to the SP. Terry L. Broadbent - DBA
Computing Links:
I agree with Terry, crystal seems to have major problems dealing with date parameters in stored procs. We came to the same conclusion in my office pass it as a char or varchar and let sql deal with converting it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.