Odbc Visual Foxpro Driver Download
Hi Friends,
Getting this error, while trying to insert user details, Please help
Error
System.Data.Odbc.OdbcException: ERROR [42000] [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement. at System.Data.Odbc.OdbcConnection.HandleError(HandleRef hrHandle, SQL_HANDLE hType, RETCODE retcode) at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method) at System.Data.Odbc.OdbcCommand.ExecuteReader(CommandBehavior behavior) at System.Data.Odbc.OdbcCommand.ExecuteReader() at ID.IW.InsertWork.InsertName(String name) in E:Site's WorkIDEAS DatabaseDataWorkInsertWork.vb:line 51
Description: An unhandled exception occurred during the execution of the current web
'Getting the ODBC name from Config file
'Dim ConStr As String =
Dim Con As New OdbcConnection(ConfigurationSettings.AppSettings('constr'))
Public Function InsertName(ByVal name As String) As String
Dim SS As String = 'Insert into Regi (name) values ?'
Dim cmd As New OdbcCommand('Pal', Con)
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.Add('?', OdbcType.Char, 50).Value = name
Try
If Con.State = ConnectionState.Closed Then
Con.Open()
End If
cmd.ExecuteReader()
Catch ex As Exception
Throw New System.Exception(ex.ToString)
Finally
Con.Close()
End Try
Return 'Job Done'
End Function
thanks in advance
Bye
Viking
Resolving The Problem. This error is due to an issue with the ODBC driver. Microsoft have documented this issue in their Knowledge Base articles #Q124322, Q125959.
Error 42000 Microsoft Odbc Visual Foxpro Driver Syntax Error Code
- Per this ancient tome, FIX: TMP File Errors If ALTER TABLE Runs Same Time As ODBC DLL: Visual FoxPro and the VFP ODBC driver both use the same naming convention and algorithm for temporary (.tmp) file creation. If both programs run concurrently, there is a conflict in the processes attempting to access the same file or same file name.
- Driver name too long: SQLBrowseConnect SQLDriverConnect: IM012: DRIVER keyword syntax error: SQLBrowseConnect SQLDriverConnect: IM013: Trace file error: All ODBC functions. IM014: Invalid name of File DSN: SQLDriverConnect: IM015: Corrupt file data source: SQLDriverConnect.
- Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question.Provide details and share your research! Asking for help, clarification, or responding to other answers.
- Jun 15, 2018 Resolving The Problem. This error is due to an issue with the ODBC driver. Microsoft have documented this issue in their Knowledge Base articles #Q124322, Q125959.