×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Type conversion required by the DataType error with a fresh install of Windows 11

Type conversion required by the DataType error with a fresh install of Windows 11

Type conversion required by the DataType error with a fresh install of Windows 11

(OP)
I’ve updated my main dev machine to Windows 11. I’m accessing a SQL Server with a remote view based on an 32 bit ODBC driver. It was working ok with win 10 but now I receive the error message “Type conversion required by the DataType property for field ‘Ae_Debut’ Is invalid” It as date field and the SQL view is

DBSetProp(ThisView+".ae_debut","Field","DataType","D")
DBSetProp(ThisView+".ae_debut","Field","UpdateName","AgnMain.AE_DEBUT")
DBSetProp(ThisView+".ae_debut","Field","KeyField",.F.)
DBSetProp(ThisView+".ae_debut","Field","Updatable",.T.)

I did not change anything, the SQL ODBC version driver is the same as before and I have a virtual machine in Windows 8.1 (I know, I know) and it’s still working. In the SQL Server table, the Ae_Debut type is date

RE: Type conversion required by the DataType error with a fresh install of Windows 11

Sure you're using the exact same version of the exact same series of MSSQL Server ODBC drivers? There are quite a lot.

It's been a while since MSSQL introduced date fields, it's still very typical to have datetime fields in SQL Server and that corresponds to VFPs T not D type.
I do understand you explicitly said the SQL Server table column is date. There still are drivers that don't support this SQL Server type, for example, but only pass back T.

Chriss

RE: Type conversion required by the DataType error with a fresh install of Windows 11

Hmm,

When VFP show the error?
What return SET("DATE")?
What are date values in a field on MSSQL?

MartinaJ

mJindrova

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close