>nHandle = SQLConnect("{your DSN here}") >cConnection = SQLGetProp(nHandle,"ConnectString") >_cliptext=cConnection >>Now you have the connection string that is used by the DSN into the clipboard.You can now paste into your code and use it instead of the DSN.