Re: ODBC Time Out Expired
- From: "MikeD" <nobody@xxxxxxxxxxx>
- Date: Wed, 6 Jul 2005 23:46:47 -0400
"Travis" <Travis@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E188FD1D-4E23-481B-A02B-FEE5AA026055@xxxxxxxxxxxxxxxx
> Hi ,
>
> I am using vb6 to connect to SQL Server 2000 through ODBC. When execute
> the query in VB , I always get an error say that "Time Out Expired" ...
>
> In SQL Server I already set query timeout = 0 , but I don't know how to
> set for ODBC driver. Please help if someone know the vb coding or any way
> to
> set it ?
Are you using ADO? I'll assume the answer is yes.
First, if I were you, I'd drop ODBC. Use the SQL Server OLEDB Provider
instead. Second, you can set the connection timeout by specifying a value
for the ConnectionTimeout property of ADO's Connection object.
--
Mike
Microsoft MVP Visual Basic
.
- Follow-Ups:
- Re: ODBC Time Out Expired
- From: Travis
- Re: ODBC Time Out Expired
- References:
- ODBC Time Out Expired
- From: Travis
- ODBC Time Out Expired
- Prev by Date: Re: Reszing form highlights combo box
- Next by Date: Re: Adding a VB6 module to a VB.NET project
- Previous by thread: ODBC Time Out Expired
- Next by thread: Re: ODBC Time Out Expired
- Index(es):
Relevant Pages
|
|