- Mar 1, 2000
- 30,890
- 5,001
- 126
Provider=SQLOLEDB.1;Persist Security Info=True;User ID=XXXXX;Initial Catalog=CLS;Data Source=SQL;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=%COMPUTERNAME%;Use Encryption for Data=False;Tag with column collation when possible=False
I have the above connection string to connect to SQL.
However, when it connects the "Workstation ID=" literally shows up as "%COMPUTERNAME%" and not the actual name of the computer calling the connection string.
Is there anyway to get the system variable to dynamically pull in the string?
I have the above connection string to connect to SQL.
However, when it connects the "Workstation ID=" literally shows up as "%COMPUTERNAME%" and not the actual name of the computer calling the connection string.
Is there anyway to get the system variable to dynamically pull in the string?
