Jump to content
teri

SQL Server Timestamp field reading as WideString

Recommended Posts

Hello -

 

I wrote an application that uses a TFDQuery to retrieve data from a SQL Server. A few of the fields in the query are typed as TSQLTimeStampField. Everything works beautifully when I run the application, either from within the Delphi IDE or as a standalone app.

 

However, when my colleague, who needs to use the application, tries to run it, she gets the following error.

 

 image.thumb.png.90f1b2f545ae34963410ee55a6f60c81.png

 

We're using version 2019 of SQL Server, and the data field in the SQL table is typed as DateTime2(0).

 

I tried changing CollectionTime's field type to WideString then DateTime, but each threw Debugger Exceptions.

 

I'm at a loss as to how to remedy this. Any suggestions?

 

Teri

Edited by teri
Added information

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×