Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to update a text field of SQL Server with VFP memo f
Message
From
22/09/2004 05:47:38
 
 
To
22/09/2004 02:35:15
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00943525
Message ID:
00944894
Views:
40
For CHR(0) issues.
With parameter the process is correct,
but i expected a free error execution with a pure SQL string command
con=SQLCONNECT()
IF con>0
	CLEAR 
	CREATE CURSOR foo (f1 M, f2 C(10) DEFAULT f1)
	INSERT INTO foo (f1) VALUES ("Test"+CHR(0)+"tesT")

	? 'Expected no errors',SQLEXEC(con,"select '"+foo.f2+"' rf2")
	? MESSAGE()
	SQLDISCONNECT(con)
ENDIF
ODBC audit:
vfp8            5e0-5a0	ENTER SQLExecDirect 
		HSTMT               02541B60
		UCHAR *             0x014AF338 [      -3] "select 'Test\ 0"
		SDWORD                    -3javascript:MessageSubmit()
[Save this message so it will appear for other members immediately] 

vfp8            5e0-5a0	EXIT  SQLExecDirect  with return code -1 (SQL_ERROR)
		HSTMT               02541B60
		UCHAR *             0x014AF338 [      -3] "select 'Test\ 0"
		SDWORD                    -3

		DIAG [37000] [Microsoft][ODBC SQL Server Driver][SQL Server]Virgoletta di chiusura mancante prima della stringa di caratteri 'Test'. (105) 

		DIAG [37000] [Microsoft][ODBC SQL Server Driver][SQL Server]Riga 1: sintassi non corretta in prossimità di 'Test'. (170) 
Can VFPT fix this in VFP9 ?

Thanks
Fabio
Previous
Reply
Map
View

Click here to load this message in the networking platform