Specifies the number of seconds the interface should wait for a connection to the data provider to complete.
ADO.NET
OLE DB
SNC SQL Native Client for Microsoft SQL Server
TimeOut=value
Parameter |
Description |
---|---|
value |
The number of seconds the interface waits for a connection to complete. |
None
The default value for the TimeOut parameter is driver-specific.
When you use this parameter with an AdoTransaction object in DataWindow .NET, set this parameter in the ConnectString parameter of the Connection object. For more information, see “Specifying parameters for ADO.NET and AdoTransaction”.
To set the TimeOut value to wait 10 seconds for a connection to complete:
Database
profile Type 10
in the Timeout
box on the System page in the Database Profile Setup dialog box.
Application Type the following in code:
SQLCA.DbParameter="TimeOut=10"