4D v17.4Get current data source | 
            ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
                 
                
  | 
                
			
                    
                         
    4D v17.4
 
Get current data source 
                                
                                
        
 | 
                |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Get current data source -> Function result | ||||||||
| Parameter | Type | Description | ||||||
| Function result | String | 
             
         | 
        Name of current data source being used | |||||
The Get current data source command returns the name of the current data source of the application. The current data source receives the SQL queries executed within Begin SQL/End SQL structures.
When the current data source is the local 4D database, the command returns the string “;DB4D_SQL_LOCAL;”, which corresponds to the value of the SQL_INTERNAL constant ("SQL" theme).
This command lets you check the current data source, generally before executing an SQL query.
	Product:  4D
	Theme:  SQL
	Number:  
        990
        
        
        
	
	Created:  4D v11 SQL  
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	4D Language Reference ( 4D v17)
	
	
	
	
	
	
	4D Language Reference ( 4D v17.1)
	
	
	4D Language Reference ( 4D v17.2)
	
	
	4D Language Reference ( 4D v17.3)
	
	4D Language Reference ( 4D v17.4)
	
	
Add a comment