Writes a message to the Open Data Services log file.
Important This Open Data Services function or macro is only supported in Microsoft® SQL Server™ version 7.0 for backward compatibility.
For more information about Open Data Services functions or macros supported for backward compatibility, see Open Data Services (Level 3).
int srv_log (
SRV_SERVER * server,
BOOL date_stamp,
DBCHAR * msg,
int msglen );
SUCCEED or FAIL.
The default name of the log file is Srv.log. The name of the log file can be set with srv_config and can be found with srv_sfield.
The log file can be changed at any time. If the log file is changed, the current log file, if any, is closed and a new log file is opened.
Messages are always added to a log file if one exists.
srv_config | srv_sfield |
srv_getserver |