Thanks,Bill
"Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding."
My query has been timed at about 90 seconds. What can I do to get StrataFrame to increase this timeout?
Thanks!!
I found a thread that may give you an idea about using a separate thread for your query. Check it here: http://forum.strataframe.net/FindPost11979.aspx
You can set the remote query timeout on the server, I had to change this when I was doing some import operations from my old foxpro data to Sql. I'm not sure if there is a way to change it ona per query basis but this did work for me with the same error.
I thought that I had found where to set it on a per query basis, I set it server wide to deal with an issue with E-connect for Great Plains, to set in on a per query basis simply set the commandtimeout property of the Sql Command.
loCommand.CommandTimeout = 150
loCommand.CommandText =
I am still using SQL Server 2000...I will see if I can find a corresponding configuration for setting the timeout.
Here is my code that I use for retrieving the data:
If the command timeout can be set, how do I do that from the BO?
Through a command:
'-- Never time outcmd.CommandTimeout = 0
'-- Set the parmscmd.Parameters.AddWithValue("@Parm1", 1).SqlDbType = SqlDbType.Int
'-- Set the command typecmd.CommandType = CommandType.StoredProcedure
'-- Execute the commandMe.ExecuteNonQuery(cmd)
Works great! Thanks a bunch. Oh...and the wait window...awefully nice feature!!
Now, I just need to work on getting that sproc to run faster than 90 seconds. It has several nested CASE statements that I think are gumming up the works. Not too sure how to simplify those conversions that are going on.
Happy Friday!Bill