goApp.nConnectionHandle = ; SQLSTRINGCONNECT([Driver=SQL Server;Database=Northwind;UID=] ; + alltrim(THISFORM.txtUserID.Value) + [;PWD=] ; + alltrim(THISFORM.txtPassword.Value + [;Server=server_name_here;]If the parameters in that string are incorrect, VFP will prompt you with the SQL Server login form so you can make corrections. Once the connection is established, issue _ClipText = SQLGETPROP(goApp.nConnectionHandle, "ConnectString") from the Command Window to place a copy of the complete connection string into the clipboard. Then you can paste it anywhere you need it.
goApp.nConnectionHandle = ; SQLSTRINGCONNECT([Driver=Microsoft ODBC for Oracle;UID=] ; + alltrim(THISFORM.txtUserID.Value) + [;PWD=] ; + alltrim(THISFORM.txtPassword.Value + [;Server=server_name_here;]