Quantcast
Viewing all articles
Browse latest Browse all 15889

SQL Server Native Clinet 10.0 Query Timeout

I have a C++ app that uses the SQL Server Native Client 10.0 as my ODBC provider.

I need to adjust the Query Timeout for several queries going to a remote instance of SQL Server 2008 R2.

I have tried SqlSetStmtOption(SQL_QUERY_TIMEOUT) and SqlSetStmtAttr(SQL_ATTR_QUERY_TIMEOUT) but these did not influence the SQL Server Native Client 10.0 provider.

My app is an ODBC 3.x app.

Does anybody know how to set the Query Timeout value (not the login timeout value) using C++ for the Sql Server Native Client 10.0?

TIA!!!


Viewing all articles
Browse latest Browse all 15889

Trending Articles