In the crystal report, I have added a command which extracts rows from a table of another server through openquery
select *from openquery(lnkserver,'select ltrim(rtrim(a.firstname))+'' ''+ltrim(rtrim(a.lastname)) as name from table a where a.date>={?fromdate} and a.date<={?todate} ')
It is not accepting with dates. In sql query window, if i put any date within double quotes , its working fine. But in crystal report, I tried the same with double quotes around{?fromdate} and {?todate}, but its not working.
whereever there is single quote in sql server, i have made it a double quote, but for date i am unable to implement in crystal report.
select *from openquery(lnkserver,'select ltrim(rtrim(a.firstname))+'' ''+ltrim(rtrim(a.lastname)) as name from table a where a.date>={?fromdate} and a.date<={?todate} ')
It is not accepting with dates. In sql query window, if i put any date within double quotes , its working fine. But in crystal report, I tried the same with double quotes around{?fromdate} and {?todate}, but its not working.
whereever there is single quote in sql server, i have made it a double quote, but for date i am unable to implement in crystal report.