4D v17ODBC_SQLGetEnvAttr | 
            ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
                 
                
    
    
                 | 
                
			
                    
                         
    4D v17
 
ODBC_SQLGetEnvAttr 
                                
                                
        
 | 
                |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ODBC_SQLGetEnvAttr ( attribute ; valor ) -> Resultado | ||||||||
| Parâmetro | Tipo | Descrição | ||||||
| attribute | Inteiro longo | 
             
         | 
        Attribute to retrieve | |||||
| valor | Inteiro longo | 
             
         | 
        Current value of the attribute | |||||
| Resultado | Inteiro longo | 
             
         | 
        Returns the result of the MS ODBC API function SQLGetEnvAttr | |||||
The ODBC_SQLGetEnvAttr command returns the current setting of an environment attribute.
attribute is the environment attribute to retrieve and can be one of the following values:
| Constant | Description | 
| SQL_ATTR_CONNECTION_POOLING | Enables or disables connection pooling at the environment level | 
| SQL_ATTR_CP_MATCH | Determines how a connection is chosen from a connection pool | 
| SQL_ATTR_ODBC_VERSION | Determines whether certain functionality exhibits ODBC 2.x behavior or ODBC 3.x behavior | 
| SQL_ATTR_OUTPUT_NTS | Determines how the driver returns string data | 
value is the current value of attribute.
For more information, please see the SQLGetEnvAttr function in the MS ODBC API Reference to http://msdn.microsoft.com/en-us/library/ms709276(VS.85).aspx.
SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_NO_DATA, SQL_ERROR, or SQL_INVALID_HANDLE.
The following method sets a environment attribute and then retrieves it:
 $result:=ODBC_SQLSetEnvAttr(SQL_ATTR_ODBC_VERSION;3)
 $result:=ODBC_SQLGetEnvAttr(SQL_ATTR_ODBC_VERSION;vEnvAttribute)
	Produto: 4D
	Tema: ODBC_Driver attributes
	Número 
        16983
        
        
        
	
	Criado por: 4D ODBC Pro 2004
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	4D ODBC Pro ( 4D v17)
	
	
	
	
	
	
	
	
Adicionar um comentário