You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to draw my problem.
It only occures when connection pooling is disabled.
1. Initialize my FbDataAdapter's once within an Init()
[QUOTE]// initialise DataAdapter
DA_MainView = new FbDataAdapter(Select_MainView);
DA_DetailView = new FbDataAdapter(Select_DetailView);
DA_Image = new FbDataAdapter(Select_Images);[/QUOTE]
2. Call every FbDataAdapter's Fill method within a method
[QUOTE]
using (connection = new FbConnection(sConnectionString))
{
try
{
connection.Open();
// start a transaction
usedTransaction = connection\.BeginTransaction\(\);
// set the transaction & connection for the select statements of the data adapters
DA\_MainView\.SelectCommand\.Connection = connection;
DA\_MainView\.SelectCommand\.Transaction = usedTransaction;
DA\_DetailView\.SelectCommand\.Connection = connection;
DA\_DetailView\.SelectCommand\.Transaction = usedTransaction;
DA\_Image\.SelectCommand\.Connection = connection;
DA\_Image\.SelectCommand\.Transaction = usedTransaction;
3. calling the method twice results in an SQL error. Executing DA_DetailView.Fill(tblDetailsView); the second time causes the error, while calling DA_MainView.Fill(tblMainView); still works.
But what makes me curious is that i got different error messages within the exception message property.
I got following error messages:
[QUOTE] "invalid request handle"[/QUOTE]
and
[QUOTE]
"Dynamic SQL Error
SQL error code = -502
Attempt to reopen an open cursor"[/QUOTE]
If connection pooling is turned on, no error occures.
Does anybody got an idea how to fix this? Or is this behaviour a bug of the firebird database?
The text was updated successfully, but these errors were encountered:
Submitted by: Thomas (inva)
Hi, I'm trying to draw my problem.
It only occures when connection pooling is disabled.
1. Initialize my FbDataAdapter's once within an Init()
[QUOTE]// initialise DataAdapter
DA_MainView = new FbDataAdapter(Select_MainView);
DA_DetailView = new FbDataAdapter(Select_DetailView);
DA_Image = new FbDataAdapter(Select_Images);[/QUOTE]
2. Call every FbDataAdapter's Fill method within a method
[QUOTE]
using (connection = new FbConnection(sConnectionString))
{
try
{
connection.Open();
DA_MainView.Fill(tblMainView);
DA_DetailView.Fill(tblDetailsView);
DA_Image.Fill(tblImage_FileIDs);
.
.
.[/QUOTE]
3. calling the method twice results in an SQL error. Executing DA_DetailView.Fill(tblDetailsView); the second time causes the error, while calling DA_MainView.Fill(tblMainView); still works.
But what makes me curious is that i got different error messages within the exception message property.
I got following error messages:
[QUOTE] "invalid request handle"[/QUOTE]
and
[QUOTE]
"Dynamic SQL Error
SQL error code = -502
Attempt to reopen an open cursor"[/QUOTE]
If connection pooling is turned on, no error occures.
Does anybody got an idea how to fix this? Or is this behaviour a bug of the firebird database?
The text was updated successfully, but these errors were encountered: