This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
SQL
SQL Get current data source

SQL Get current data source 


 

SQL Get current data source -> Function result 
Parameter Type   Description
Function result  String in Name of current data source being used

The SQL 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.



See also 

Begin SQL
End SQL
SQL GET DATA SOURCE LIST
SQL LOGIN
SQL LOGOUT

 
PROPERTIES 

Product: 4D
Theme: SQL
Number: 990

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v11 SQL
Renamed: 4D v19 R5 (Get current data source)

 
ARTICLE USAGE

4D Language Reference ( 4D v20 R7)