Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Btrieve > Timeout problem...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 969 of 1011
Post > Topic >>

Timeout problem in .NET

by jecko68@[EMAIL PROTECTED] Nov 20, 2007 at 10:48 PM

Greetings,
We have developed an ASP .NET app using VS Studio 2005. The database
in our test environment is Pervasive 9.5, but the same problem has
occured in a Pervasive 9.1 environment. We are using ODBC to access
the data. A simplified example:

Dim oConnection As OdbcConnection = New OdbcConnection(GET CONNSTRING
HERE)
Dim oCommand As OdbcCommand = New OdbcCommand()
sSQL = "SELECT field1, field2, field3"
sSQL = sSQL & " FROM (table1"
sSQL = sSQL & " LEFT OUTER JOIN table2 ON field1 = w.cpersonnamelink)"
sSQL = sSQL & " WHERE field3 = " & somevalue
oCommand.CommandText = sSQL
oCommand.Connection = oConnection
oCommand.CommandType = Data.CommandType.Text
oConnection.Open()
Dim result As OdbcDataReader =
oCommand.ExecuteReader(CommandBehavior.CloseConnection)
While result.Read
....

The SQL selects aren't that complex but in both environments we
randomly get a timeout error:

[OdbcException (0x80131937): ERROR [HYT00] [Pervasive][ODBC Client
Interface][LNA][Pervasive][ODBC Engine Interface]S1T00Timeout
expired.]
[InvalidOperationException: The connection has been disabled.]
System.Data.Odbc.OdbcConnection.ConnectionIsAlive(Exception
innerException) +1191211

I can't figure out what's wrong. As I said, the SQL clauses are quite
straight forward so I can't get why
most times the SQL execution is done within a second ot 2, but now and
again I get this error.
Any good tips where to look?

regards, Joacim
 




 2 Posts in Topic:
Timeout problem in .NET
jecko68@[EMAIL PROTECTED]  2007-11-20 22:48:44 
Re: Timeout problem in .NET
"Joni Tuoreniemi&quo  2007-11-22 15:07:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 20 0:23:18 CDT 2008.