Question

I am developing a small desktop application. In this application i have to simply insert unicode data in foxpro database and retrieve the same in a listview. In SQL Server it worked perfect :-

insert into LOG (name,adrs) values(N'"& TxtName.Text &"',N'"& TxtAdrs.Text &"')

But when i wrote the same thing to insert data in foxpro table(.dbf file), it shows an error

ERROR [42000] [Microsoft][ODBC Visual FoxPro Driver]Syntax error.

Can anybody tell what i am doing wrong.. Thanks in advance..

Was it helpful?

Solution

On VFP side the SQL should look like this:

insert into LOG (name,adrs) values('value1','value2')

But you cannot store Unicode in VFP table. It only can contain ANSI data along with it's codepage.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top