The following example shows this setting as it may appear in the defaults file:
The following script can be used in a pre script for a login window you create. Defaults_Read() retrieves the value of the SQLLastDataSource setting, which is then used as the default value of the Data_Source field on your login window:
local string data_source_name. local boolean l_result. set l_result to Defaults_Read("SQLLastDataSource", data_source_name). set Data_Source to itemname(Data_Source_DDL,data_source_name).