Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports
Viewing all articles
Browse latest Browse all 4814

getdate() function is not working in Crystal reports XIR2

$
0
0


Hi ,

 

I am trying to point the connection from oracle to SQL server for one of the crystal reports

 

Existing database is oracle and the sytax is {RESPONSE.CREATEDATE} <= CurrentDate and {RESPONSE.CREATEDATE} >= (Current Date - 730)

 

New database is SQL Server 2012 and i have modified the syntax like below:

 

{RESPONSE.CREATEDATE} <= getdate() and {RESPONSE.CREATEDATE} >= (getdate()- 730)

 

and getting below error:

 

"A number , currency amount,boolean, date, time, date-time,or string is expected here"

 

I am not sure how to proceed further on this.

 

Kindly help me on the correct syntax

 

thanks in advance

 

Regards,

Krishna


Viewing all articles
Browse latest Browse all 4814

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>