Re: SQL Server 200 "Timeout Expired"
From: VMP (VMP_at_discussions.microsoft.com)
Date: 12/28/04
- Next message: David Gugick: "Re: SQL Server 200 "Timeout Expired""
- Previous message: VMP: "RE: SQL Server 200 "Timeout Expired""
- In reply to: David Gugick: "Re: SQL Server 200 "Timeout Expired""
- Next in thread: David Gugick: "Re: SQL Server 200 "Timeout Expired""
- Reply: David Gugick: "Re: SQL Server 200 "Timeout Expired""
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 27 Dec 2004 23:43:07 -0800
Oops!.. I meant CommandTimeout, that's been set to 0
"David Gugick" wrote:
> VMP wrote:
> > Hi,
> >
> > I'm developing an application in VB using ADO and I'm connecting to
> > SQL Server 2000 (SP3).
> >
> > I'm facing an infrequent TIMEOUT error.
> >
> > I have set the connection time out to 0 (unlimited) on the Connection
> > object. I'm using a global connection object across the application
> > and opening 2-3 recordsets at a time. Which I close after use.
> > YES, I've read an article on Microsoft that speaks about ADO spawing
> > more connections implicitly!
> > I have updated MDAC on my PC from 2.6 to 2.8 (that's the latest!)
> > and tried using a DSN (SQL ODBC Driver) as well as SQLOLEDB Provider.
> > I've specified the alias name for the server as well as the IP
> > address (its slow with the IP address)... BUT .. I still keep getting
> > the message "Timeout Expired".
> > The SQL Server is accessed over the same domain as the client PC,
> > with NT authentication.
> > This message appears even as I try to login. Its doesnt always come
> > as I execute a stored procedure or query.
> >
> > I hope I've provided ample data for you to tear your hair out as
> > well!! ;) Please advise...
> > I've rummaged thru many web-sites and forums for answers.. tried many
> > a solution .. but all in vain.
> >
> > VMP
>
> Try setting the CommandTimeout on the Command object. The connection
> timeout is only for connecting, not executing.
>
> --
> David Gugick
> Imceda Software
> www.imceda.com
>
>
- Next message: David Gugick: "Re: SQL Server 200 "Timeout Expired""
- Previous message: VMP: "RE: SQL Server 200 "Timeout Expired""
- In reply to: David Gugick: "Re: SQL Server 200 "Timeout Expired""
- Next in thread: David Gugick: "Re: SQL Server 200 "Timeout Expired""
- Reply: David Gugick: "Re: SQL Server 200 "Timeout Expired""
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|