Hello,
we use the Oracle.ManagedDataAccess.dll to connect to Oracle.
We define a parameter for sql query, every parameter for varchar fields throws an exception.
bei OracleInternal.ServiceObjects.OracleCommandImpl.VerifyExecution(OracleConnectionImpl connectionImpl, Int32& cursorId, Boolean bThrowArrayBindRelatedErrors, OracleException& exceptionForArrayBindDML, Boolean& hasMoreRowsInDB, Boolean bFirstIterationDone)
bei OracleInternal.ServiceObjects.OracleCommandImpl.ExecuteReader(String commandText, OracleParameterCollection paramColl, CommandType commandType, OracleConnectionImpl connectionImpl, OracleDataReaderImpl& rdrImpl, Int32 longFetchSize, Int64 clientInitialLOBFS, OracleDependencyImpl orclDependencyImpl, Int64[] scnForExecution, Int64[]& scnFromExecution, OracleParameterCollection& bindByPositionParamColl, Boolean& bBindParamPresent, Int64& internalInitialLOBFS, OracleException& exceptionForArrayBindDML, Boolean isDescribeOnly, Boolean isFromEF)
bei Oracle.ManagedDataAccess.Client.OracleCommand.ExecuteReader(Boolean requery, Boolean fillRequest, CommandBehavior behavior)
bei Oracle.ManagedDataAccess.Client.OracleDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
bei System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
bei Stimulsoft.Report.Dictionary.StiSqlSource.RetrieveData(Boolean schemaOnly)
bei Stimulsoft.Report.Dictionary.StiSqlAdapterService.ConnectDataSourceToData(StiDictionary dictionary, StiDataSource dataSource, Boolean loadData)
bei Stimulsoft.Report.Dictionary.StiDataSource.Connect(StiDataCollection datas, Boolean loadData)
bei Stimulsoft.Report.Dictionary.Design.StiDataStoreSourceEditForm.tbRunScript_Click(Object sender, EventArgs e)
You need only a Table with varchar2 fields and used them in the report to reproduce the error.
The same situation at sql server works perfect, what ist wrong with Oracle?
Greetings
Oracle Managed Driver, no varchar Params in Query
Oracle Managed Driver, no varchar Params in Query
- Attachments
-
- Report.mrt
- (9.03 KiB) Downloaded 268 times
Re: Oracle Managed Driver, no varchar Params in Query
Hello,
For Oracle you should use ":Param" instead "@Param".
Thank you.
For Oracle you should use ":Param" instead "@Param".
Code: Select all
"SELECT * FROM Emp WHERE Job = :pJob"
Re: Oracle Managed Driver, no varchar Params in Query
Hello,
ok, thanks for this solution. Please update your documentation.
Greetings
ok, thanks for this solution. Please update your documentation.
Greetings
Re: Oracle Managed Driver, no varchar Params in Query
Hello,
We are always glad to help you!
We will try to update in the near future.
Thank you.
We are always glad to help you!
We will try to update in the near future.
Thank you.