When attempting to connect to a DAL server via the Asynchronous network adapter through a terminal server, you may have trouble writing connection scripts that work reliably. A common symptom is that the connection scripts work when in debugging mode, but they don't work as consistently (or at all) when in standard mode.
Some terminal servers do baud rate recognition and require two carriage returns at the beginning of the script to activate them. DAL may send those returns with too little delay for the server to recognize them. The solution is to add a short wait between the two returns by modifying the script from '\\r\\r' to '\\r\\w1\\r', which forces DAL to pause long enough for the terminal server.