Unix Technical Forum

Time Out Issue

This is a discussion on Time Out Issue within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> Hi , I create a ODBC for SQL Server 2000 and use VB 6 to connect it. When I ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 09:47 PM
=?Utf-8?B?VHJhdmlz?=
 
Posts: n/a
Default Time Out Issue

Hi ,

I create a ODBC for SQL Server 2000 and use VB 6 to connect it. When I
pass it the sql query in vb and process the recordset , I am getting an error
"Microsoft ODBC SQL Server Driver Timeout expired". Where can I set the
time out in the ODBC ? TQ.

--
Travis Tan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 09:47 PM
Scot T Brennecke
 
Posts: n/a
Default Re: Time Out Issue

There is an ODBC API function called SQLSetStmtOption. Call it with option 0, which is
SQL_QUERY_TIMEOUT.

"Travis" <Travis@discussions.microsoft.com> wrote in message
news:7C4F7364-49A8-4BE3-814D-DB04B3487647@microsoft.com...
> Hi ,
>
> I create a ODBC for SQL Server 2000 and use VB 6 to connect it. When I
> pass it the sql query in vb and process the recordset , I am getting an error
> "Microsoft ODBC SQL Server Driver Timeout expired". Where can I set the
> time out in the ODBC ? TQ.
>
> --
> Travis Tan



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 09:54 PM
=?Utf-8?B?UGF0?=
 
Posts: n/a
Default Re: Time Out Issue

How can you call the API from within a stored procedure or from Visual Studio
2003.


"Scot T Brennecke" wrote:

> There is an ODBC API function called SQLSetStmtOption. Call it with option 0, which is
> SQL_QUERY_TIMEOUT.
>
> "Travis" <Travis@discussions.microsoft.com> wrote in message
> news:7C4F7364-49A8-4BE3-814D-DB04B3487647@microsoft.com...
> > Hi ,
> >
> > I create a ODBC for SQL Server 2000 and use VB 6 to connect it. When I
> > pass it the sql query in vb and process the recordset , I am getting an error
> > "Microsoft ODBC SQL Server Driver Timeout expired". Where can I set the
> > time out in the ODBC ? TQ.
> >
> > --
> > Travis Tan

>
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:49 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com