Re: ODBC Time Out Expired
- From: "Alberto Covili" <superrava@xxxxxxxxxxxxxxxx>
- Date: Thu, 7 Jul 2005 12:59:34 +0200
Hi Travis,
you may try to increase the value of the CommandTimeout property of the ADO
connection (or Command) object you use to execute your query.
Or set it to 0, like you did for the ConnectionTimeout property.
--
Alberto Covili
"Travis" <Travis@xxxxxxxxxxxxxxxxxxxxxxxxx> ha scritto nel messaggio
news:784B63E7-F666-4025-9572-BAC9B63C6AE8@xxxxxxxxxxxxxxxx
> Hi Mike ,
>
> Thanks for your advise. I already try out Use the SQL Server OLEDB
> Provider
> before I use ODBC. I still get the same issue. I am not sure
> what is wrongs actually ?
>
> "MikeD" wrote:
>
>>
>> "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
>>
>>
>>
>>
.
- References:
- ODBC Time Out Expired
- From: Travis
- Re: ODBC Time Out Expired
- From: MikeD
- Re: ODBC Time Out Expired
- From: Travis
- ODBC Time Out Expired
- Prev by Date: compare value from DTPicker and now()
- Next by Date: Listview - Performance fine except when adding first item
- Previous by thread: Re: ODBC Time Out Expired
- Next by thread: Open File problem..plz help
- Index(es):
Relevant Pages
|
|