Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t1P5q-00G8mR-TJ for pgsql-odbc@arkaria.postgresql.org; Thu, 17 Oct 2024 11:55:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t1P5n-003qyv-KU for pgsql-odbc@arkaria.postgresql.org; Thu, 17 Oct 2024 11:54:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t1P5m-003qym-MI for pgsql-odbc@lists.postgresql.org; Thu, 17 Oct 2024 11:54:59 +0000 Received: from smtprelay0246.b.hostedemail.com ([64.98.42.246] helo=relay.b.hostedemail.com) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t1P5g-001Wxr-ER for pgsql-odbc@lists.postgresql.org; Thu, 17 Oct 2024 11:54:57 +0000 Received: from omf20.b.hostedemail.com (omf20 [10.200.6.83]) by unirelay01.b.hostedemail.com (Postfix) with ESMTP id E2FB680397 for ; Thu, 17 Oct 2024 11:54:37 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: luiz@planit.com.br) by omf20.b.hostedemail.com (Postfix) with ESMTPA id 8BA1180003 for ; Thu, 17 Oct 2024 11:54:37 +0000 (UTC) Content-Type: multipart/alternative; boundary="------------vDTjwerOhdcWi30h8wq12dy3" Message-ID: Date: Thu, 17 Oct 2024 08:54:43 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Connection / Login Timeout To: pgsql-odbc@lists.postgresql.org References: <13244b1a-197f-4bcd-9565-089b2060d7d5@planit.com.br> <6703f29a-1635-40bc-ab47-8d07e2979449@denodo.com> Content-Language: pt-BR From: Luiz Matsumura Disposition-Notification-To: Luiz Matsumura In-Reply-To: <6703f29a-1635-40bc-ab47-8d07e2979449@denodo.com> X-Stat-Signature: 5snwn5gkkdmt7tcd48zm11j38q3fbitb X-Rspamd-Server: rspamout07 X-Spam-Status: No, score=-2.60 X-Rspamd-Queue-Id: 8BA1180003 X-Session-Marker: 6C75697A40706C616E69742E636F6D2E6272 X-Session-ID: U2FsdGVkX19/ALBqP+cx1yosvRS4UtnPTQvjoBPIIpo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=planit.com.br; h=content-type:message-id:date:mime-version:subject:to:references:from:in-reply-to; s=noips1; bh=bkz6kUO+w72Eh8p/M8aLJGbRgrNIDXT8kKj+oTGLIf0=; b=k9cqX9fnPinc45tATfK7JsHNBByiK5Cfq/lRHQc6dBaQD3o/PZX0t0HC8WoIarscFMm3Js8OK969tu1A+M5Nx4CNJsoaeunHvYjSaXiAeBymcCHYRx3vuk3RaimLEuNQPfbemXBoRq4LRAG7FquFjelZHCyT3vCV9dgBZzJ/xEa2prsl8SGoTK4Mn3kU5/D1Dv8GLLQp7f8YudTv5/UAN4At8lOWopxSNuPHni3kdAf4T5LjpHSNOM2TYNRYlTRmmw3RE527yP7mKUHkUizwzPBnVE1EcB8vbLyNOqL/rt9Y84uVCqSMAAMF/6DL33lO6jTdZnq3y0dIOFscdpoJfw== X-HE-Tag: 1729166077-988516 X-HE-Meta: U2FsdGVkX188cpMISnjobJGRYiY3KA5N5zbNwMzexYCzapV/652BwU9oWGXNAbq0OeWGV7Z8OTZEreX6lBziBFYgLoGs/yTOJJjFGAhYyfgoSYO4d+FmGHaqkhMhqPzk1hziFYfZjHAe0WHfO//Lc3BqNymUHYCVyw2DcbCayZZOPn37fJynuzeemQflbKKahgXzotMeyhyJYvnnaTSNGAssxNIZTLf6Dia/+dOZBdRufD7gZRXuhjxWY6qZlnj2iQr3q/6smHiR4nbQVuobK2whU3UFngY0Q6cCSc5BbzNG+g3GEnQeCrXgvL06kPIy0at5FNFZLb0YjFVKBwz2J3SdT4/SvyelqIYx5mYWoZ69PUnbSV0e2NymLjquIlGXfMNwCgHJBSwCWfQFnmBBaqrnVzZLSeIDLxU7COYVObNuPdR1dBHK4BPQeN+2+1NbpdI8JdVeCc9ZC5ErhXY6FwWxkeGwUa0RQqBDW0kSRCUho/Va7MRkRqjSt8x3050i+BzNafumAj78Nsk2nyc7GAhUZB78YD1pFONk8X/uVTFdx839eBR5b6y87yrpYiab02cRQHeU8K/rYJ0PR6Jnx3CcJaGxhk7FtqXLGmoF6Cf16w93LMOhqMQqwUF7nFv2XA9MPXhcXSbj6Dycb2/tR/ESRVyBwPws00brDMymuOjN4infm1ZdOW3/d3cufnT/ROKQIX+Q3lxj/Foa9ac9EEbb5XdJz0f2tW2aacc8URw= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------vDTjwerOhdcWi30h8wq12dy3 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi, Unfortunately I found that my programming language (Visual FoxPro, don't judge me) don't allow to set this before connection. I found the function SqlSetProp() but this function need the handle of connection as parameter, that is just returned by SqlConnect() or SqlStringConnect(), therefore after having a successfull conection. I wanted to put a value lesser than the default 15 seconds to detect an unsuccessfull connection. Thanks for the help, but I think if it is not possible to configure it by the connection string it will not be possible in VFP. Em 17/10/2024 05:19, Jacobo Sánchez López escreveu: > > That setting is on the ODBC API. You can set it using the > SQLSetConnectAttr  API method (See > https://learn.microsoft.com/en-us/sql/odbc/reference/syntax/sqlsetconnectattr-function) > > As an example Power-BI does set it to 15 seconds by default, see the > following ODBC trace fragment: > > ENTER SQLSetConnectAttrW > SQLHDBC 0x00000000060673E0 > SQLINTEGER 103 > SQLPOINTER 15 > AFAIK there is no url setting to configure it in the connection string > > El 16/10/2024 a las 21:42, Dave Cramer escribió: >> Looks like in PGAPI_SetConnectOption >> >> https://github.com/postgresql-interfaces/psqlodbc/blob/c362d981c05014fed245f8c77de5cc642bd7d750/options.c#L297C1-L297C23 >> Dave Cramer >> www.postgres.rocks >> >> >> On Wed, 16 Oct 2024 at 11:59, Administrativo wrote: >> >> Hi, >> >> In the release documentation, version 08.02.0006 added support for >> LOGIN_TIMEOUT , but how to configure this ? >> >> It's possible to configure  throught the connection string ? >> >> Thanks in advance. >> >> >> Luiz >> >> >> -- Luiz K. Matsumura Plan IT Tecnologia Informática Ltda. Tel: (11) 3500-1410 --------------vDTjwerOhdcWi30h8wq12dy3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hi,

Unfortunately I found that my programming language (Visual FoxPro, don't judge me) don't allow to set this before connection.
I found the function SqlSetProp() but this function need the handle of connection as parameter, that is just returned by SqlConnect() or SqlStringConnect(), therefore after having a successfull conection.
I wanted to put a value lesser than the default 15 seconds to detect an unsuccessfull connection.

Thanks for the help, but I think if it is not possible to configure it by the connection string it will not be possible in VFP.


Em 17/10/2024 05:19, Jacobo Sánchez López escreveu:

That setting is on the ODBC API. You can set it using the SQLSetConnectAttr  API method (See https://learn.microsoft.com/en-us/sql/odbc/reference/syntax/sqlsetconnectattr-function)

As an example Power-BI does set it to 15 seconds by default, see the following ODBC trace fragment:

	ENTER SQLSetConnectAttrW 
        SQLHDBC             0x00000000060673E0
        SQLINTEGER                 103 <SQL_ATTR_LOGIN_TIMEOUT>
        SQLPOINTER                15
AFAIK there is no url setting to configure it in the connection string

El 16/10/2024 a las 21:42, Dave Cramer escribió:

On Wed, 16 Oct 2024 at 11:59, Administrativo <adm@planit.com.br> wrote:
Hi,

In the release documentation, version 08.02.0006 added support for
LOGIN_TIMEOUT , but how to configure this ?

It's possible to configure  throught the connection string ?

Thanks in advance.


Luiz



-- 
Luiz K. Matsumura
Plan IT Tecnologia Informática Ltda.
Tel: (11) 3500-1410
--------------vDTjwerOhdcWi30h8wq12dy3--