EVariantTypeCastError

Hi,
I’m using the following SP’s statement to get the server date time. It previews successfully without error in Schema Modeler. But I apply to client that got the following error from DAServer. Please advise how to solve it?

SELECT getdate() as ServerDateTime

image

I guess the problem come from below. Because I copy existing project to new project and remove unuse files. So how to regenerate the new RODL file?

image

Hi,

You should copy also your .RODL (Yorksys.rodl) to new project too.

by other hand, if you don’t have .RODL, you can remove line like

{#ROGEN:Yorksys.rodl} // RemObjects SDK: Careful, do not remove!

from your .dpr and convert to RODL/CodeFirst server from scratch