G
Guest
Hi All,
Using the standard Data Link Properties Connection dialog there is option on
the Advanced Tab to change the connection timeout from the default 30 seconds
to another value.
Occasionally, depending on the database workload and volume of data, I have
reports that timeout executing their record source queries so generally I set
the connection timeout to greater than 30 seconds.
This works fine when I am developing, but in the production environment
because I use my own Logon Dialog I always remove any saved connection
information on application exit:
Application.CurrentProject.OpenConnection ""
to prevent the standard microsoft logon dialog appearing. However, this also
removes the connection timeout property that I have set via the Advanced tab.
I have reviewed the properties of the standard connection string I use on
application startup:
CurrentProject.OpenConnection ";User ID=" & USER & ";Password=" & PWD etc...
But there doesn't appear to be a property to change the connection timeout.
Obviously Microsoft's standard connection dialog does this somehow, does
anyone know how? (the SQL Profile didn't reveal anything)
Your assistance appreciated.
Guy
ps. I realise that I could revise the report queries so that those that may
take longer to execute than the default timeout are not called via the report
recordsource property (eg. use the adodb.command object with the command
timeout extended) but thought I would see if there was a simpler solution
first.
Using the standard Data Link Properties Connection dialog there is option on
the Advanced Tab to change the connection timeout from the default 30 seconds
to another value.
Occasionally, depending on the database workload and volume of data, I have
reports that timeout executing their record source queries so generally I set
the connection timeout to greater than 30 seconds.
This works fine when I am developing, but in the production environment
because I use my own Logon Dialog I always remove any saved connection
information on application exit:
Application.CurrentProject.OpenConnection ""
to prevent the standard microsoft logon dialog appearing. However, this also
removes the connection timeout property that I have set via the Advanced tab.
I have reviewed the properties of the standard connection string I use on
application startup:
CurrentProject.OpenConnection ";User ID=" & USER & ";Password=" & PWD etc...
But there doesn't appear to be a property to change the connection timeout.
Obviously Microsoft's standard connection dialog does this somehow, does
anyone know how? (the SQL Profile didn't reveal anything)
Your assistance appreciated.
Guy
ps. I realise that I could revise the report queries so that those that may
take longer to execute than the default timeout are not called via the report
recordsource property (eg. use the adodb.command object with the command
timeout extended) but thought I would see if there was a simpler solution
first.