lcDb = "pubs" lcConnStr = "DRIVER=SQL Server;" + ; "SERVER=Sql1;" + ; "Network=DBMSSOCN;" + ; "DATABASE=" + lcDb lnConn = SqlStringConnect(lcConnStr) IF lnConn < 0 ? _ProcessOdbcError() RETURN .F. ENDIFTo get connection string, use ODBC Manager to create FILE DSN with options you want, open it in any text editor and copy it's contents into connection string.