GeekHipster
asked on
Pervasive SQL error message
I am receiving the following error from a CREATE PROCEDURE statement being executed through Pervasive.Data.SqlClient.D ll version 2.10.1.2 against WGE 9.6
The statement works fine on other DSNs, and has also worked fine on this DSN until today, super.
I really need to know why this is happening, and ideally how to prevent it from randomly appearing on client machines after deployment.
The exception is thrown on the "ExecuteNonQuery()" in my code snippit.
Pervasive.Data.SqlClient.P sqlExcepti on was caught
ErrorPosition=0
Message="Pervasive.Data.Sq lClient.Ln a.LnaExcep tion: [LNA][Pervasive][ODBC Engine Interface][Data Record Manager]Access to the requested file is denied(Btrieve Error 46)"
Number=-4953
Source="Pervasive.Data.Sql Client"
SQLState="0"
StackTrace:
at Pervasive.Data.SqlClient.L na.LnaObje ct.CheckEr ror(LnaRes ponse res)
at Pervasive.Data.SqlClient.L na.LnaStat ement.Exec ute(ParamI nfoSet pis)
at Pervasive.Data.SqlClient.P sqlCommand Impl.execu te(Boolean parseOnly, CommandBehavior behavior, Boolean needReader)
at Pervasive.Data.SqlClient.P sqlCommand Impl.doExe cuteNonQue ry()
at DDInt.Common.CommonCommand Impl.Execu teNonQuery ()
at Pervasive.Data.SqlClient.P sqlCommand .ExecuteNo nQuery()
InnerException:
The statement works fine on other DSNs, and has also worked fine on this DSN until today, super.
I really need to know why this is happening, and ideally how to prevent it from randomly appearing on client machines after deployment.
The exception is thrown on the "ExecuteNonQuery()" in my code snippit.
Pervasive.Data.SqlClient.P
ErrorPosition=0
Message="Pervasive.Data.Sq
Number=-4953
Source="Pervasive.Data.Sql
SQLState="0"
StackTrace:
at Pervasive.Data.SqlClient.L
at Pervasive.Data.SqlClient.L
at Pervasive.Data.SqlClient.P
at Pervasive.Data.SqlClient.P
at DDInt.Common.CommonCommand
at Pervasive.Data.SqlClient.P
InnerException:
Dim cmdCreateProc As Pervasive.Data.SqlClient.PsqlCommand = m_Connection.CreateCommand()
cmdCreateProc.CommandText = strSql
If cmdCreateProc.Connection.State <> ConnectionState.Open Then cmdCreateProc.Connection.Open()
cmdCreateProc.ExecuteNonQuery()
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Anyway, turn off ReadOnlys, restart Pervasive Engine, life is good.