0% found this document useful (0 votes)
19 views

Datasources: $arrayname ('DSN') Remark Example

This document describes how to use the DataSources method to return an associative array containing the Data Source Names (DSNs) and remarks from ODBC. The array associates the DSN as the key and the remark as the value, allowing you to access the remark for a given DSN. An example prints the remark for the current DSN to the log.

Uploaded by

Amutha Arun
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Datasources: $arrayname ('DSN') Remark Example

This document describes how to use the DataSources method to return an associative array containing the Data Source Names (DSNs) and remarks from ODBC. The array associates the DSN as the key and the remark as the value, allowing you to access the remark for a given DSN. An example prints the remark for the current DSN to the log.

Uploaded by

Amutha Arun
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

DataSources

Returns an associative array of Data Sources and ODBC remarks in the form of:

$ArrayName{'DSN'} = Remark
where DSN is the Data Source Name and Remark is, well, the remark.

Example:
%rem = $db->DataSources;
print LOG qq(Current DSN's Remark: "), %rem{$db->GetDSN}, qq("\n);

You might also like