I have a very annoying problem. I’m using VFP 9 as a front end and for the first time, SQL Server as the back end. I develop in Fox for 34 years now and .NET (with SQL Server)
The problem is with the SQL varchar(max). I can create a cursor with a CursorAdapter. I can read the SQL table and it will translate the SQL varchar(max) into a memo field in VFP.
But if I try to create a parameterized remote view, (CREATE SQL VIEW (lcView) REMOTE CONNECTION (lcMainODBCDataSource) AS SELECT …), try to open it, I always receive “DataType property for field ‘Aa_Mem01’ is invalid”
I know I can use the CursorAdaptor to do CRUD but all my classes are build around remote views (tableUpdate etc…)
I’m using ODBC Driver 17 for SQL Server in both cases.
Thanks for your help.
Nro
The problem is with the SQL varchar(max). I can create a cursor with a CursorAdapter. I can read the SQL table and it will translate the SQL varchar(max) into a memo field in VFP.
But if I try to create a parameterized remote view, (CREATE SQL VIEW (lcView) REMOTE CONNECTION (lcMainODBCDataSource) AS SELECT …), try to open it, I always receive “DataType property for field ‘Aa_Mem01’ is invalid”
I know I can use the CursorAdaptor to do CRUD but all my classes are build around remote views (tableUpdate etc…)
I’m using ODBC Driver 17 for SQL Server in both cases.
Thanks for your help.
Nro