I modified the aforementioned line.

After running the FUNCTION I receive the error message,
Quote:


ERROR : error in parameterdefinition!
Script: \\SERVER2\NETLOGON\odbc.kix
Line : 56




Line#56 looks like this,
Code:
 

FUNCTION ODBCSQL('Tempdb ODBC SVRDB4','SVRDB4','tempdb')



Are there any special permissions that need to be granted on the SQL server? I have successfully created the ODBC manually using Windows Authentication.