Command contains unrecognized phrase/keyword VB.Net
- From: Komandur Kannan <kannan@xxxxxxxxxxxxxxx>
- Date: Sun, 13 Aug 2006 06:31:01 -0700
Hi
I am facing the above problem when I am trying to insert a MEMO data in
to the VFP table. I am using a OLEDB connection string in VB.Net
My data present in the file is
//------------------------------
Pen
Pencil
Erasier
Sharpener
//----------------------------
Each an every line has a (Vbcrlf) that is a line feed in it I need the File
as in the above format to be stored in the memo file without any change
I get the data from the file by the following procedure
----------
Dim lstrData As New String(" ", 500)
FileOpen(1, "C:\soc.txt", OpenMode.Binary)
FileGet(1, lstrData)
FileClose(1)
--------
I get the data in the lstrdata Now I use sql statment to insert into the vfp
table
sql = "Insert into edifile (theirref,qtnord ) Values (' " & lstrdata & "',
'RRTo')
Public gconnMDB_I As OleDb.OleDbConnection
gconnMDB_I = New OleDb.OleDbConnection
gconnMDB_I.ConnectionString = lstrConnString
Call gconnMDB_I.Open()
Dim cmd As New OleDb.OleDbCommand
cmd = New OleDb.OleDbCommand(sql, gconnMDB_I)
cmd.ExecuteNonQuery()
Once cmd.ExecuteNonQuery is excuted the following error occurs
Command contains unrecognized phrase/keyword VB.Net
.
- Follow-Ups:
- RE: Command contains unrecognized phrase/keyword VB.Net
- From: Kevin Yu [MSFT]
- RE: Command contains unrecognized phrase/keyword VB.Net
- Prev by Date: Re: VS2003 hangs creating ASP.NET webservice
- Next by Date: Re: VS2003 hangs creating ASP.NET webservice
- Previous by thread: VS2003 hangs creating ASP.NET webservice
- Next by thread: RE: Command contains unrecognized phrase/keyword VB.Net
- Index(es):