database calling code, and the sql or stored procedure that it runs.
However, there are 2 timeouts you should be aware of:
1) connection timeout. This can only be specified in the Connection String (e.g., ";Connection Timeout=60;")
2) command timeout. This can be set as a property of the command instance
(e.g., cmd.CommandTimeout=90)