Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Store Procedures with CR 9

Status
Not open for further replies.

alvintse

Programmer
Aug 1, 2003
66
US
I have a report created with CR9 Developer and MSSQL 2000 using Store Procedure with 2 parameters.

CREATE PROCEDURE stp_sample
@Name varchar(50),
@AsOfDate DateTime
....

When I run the report, it prompts the user to input the date as expected. However, it also requires the hour and minutes. I only want the user to input the data only.

I know in CR, we can declare the datatype as date so it only prompts for date. But in MSSQL, only dateTime is avail.
Is there any way I can do so the report will only prompt for date only?

Thanks

 
The only workarounds I use are:

-Either inform the users to ignore the date and strip it within the SP
-Prompt using a varchar and CAST/CONVERT within the SP
-Use a View instead, and create a Crystal parameter to pass to the View.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top