Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Server Driver vs more recent ODBC driver
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01663573
Message ID:
01663692
Views:
56
>We are still using the SQL Server driver and it seems its version is rather new in Windows 10. We did not observe any problems using this driver.
>Of course, encryption will require different driver.
>
>Here is a fix for varchar(max): http://baiyujia.com/vfpcompiler/en/default.asp (Fix 46)
>
>Another problem seems to be to recognize the driver which is currently in use. Does exist some function which would return the driver name to the client app?
>
>P.C.

I'n not sure if is bug in VFP.
SQL Server (varchar(max))
=========================
config9         15ac-1414	EXIT  SQLColAttributes  with return code 0 (SQL_SUCCESS)
		HSTMT               0x0222EF60
		UWORD                        2 
		UWORD                        6 <SQL_COLUMN_DISPLAY_SIZE>
		PTR                0x00000000
		SWORD                        0 
		SWORD *             0x00000000
		SQLLEN *            0x0018F370 (2147483647) -- max length

[INFORMATION_SCHEMA].[COLUMNS].CHARACTER_MAXIMUM_LENGTH = -1
SQLCOLUMNS(lihdbc,"test","NATIVE") (data_type) = -1 (as TEXT data type)
SQLCOLUMNS(lihdbc,"test","NATIVE") (column_size) = 2147483647


SQL Server Native Client 11.0 (varchar(max))
===========================================
config9         15ac-1414	EXIT  SQLColAttributes  with return code 0 (SQL_SUCCESS)
		HSTMT               0x003BD3B8
		UWORD                        2 
		UWORD                        6 <SQL_COLUMN_DISPLAY_SIZE>
		PTR                0x00000000
		SWORD                        0 
		SWORD *             0x00000000
		SQLLEN *            0x0018F370 (0) -- max length

[INFORMATION_SCHEMA].[COLUMNS].CHARACTER_MAXIMUM_LENGTH = -1
SQLCOLUMNS(lihdbc,"test","NATIVE") (data_type) = 12 (as VARCHAR data type)
SQLCOLUMNS(lihdbc,"test","NATIVE") (column_size) = 0
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Reply
Map
View

Click here to load this message in the networking platform