odbc win32

SAGE 100 ERP 2014 Update 6 Here's a defined connection string in our win32 app: LPCTSTR pvx_cs = "DRIVER=MAS 90 4.0 ODBC Driver; RemoteHost:192.168.40.22; Port=9996; Company=BUR; UID=xxx; PWD=12345; Directory=\\MAS-DEV-2014\Sage\Sage10~1\MAS90\;"; When called using: rc = SQLDriverConnect(hDBC, NULL, pvx_cs, SQL_NTS, NULL, 0, NULL, SQL_DRIVER_COMPLETE); Anyone know why the defined connection string doesn't work? The error is ..[PVKIO]logon error or something similar Any ideas appreciated The forum designer needs to make the description area bigger for postings. Too much dead space in the posting page
  • 0
    "DRIVER={MAS 90 4.0 ODBC Driver}; SERVER=NotTheServer; RemoteHost=mas-dev-2014; RemotePort=9996; UID=xxx; PWD=12345; COMPANY=SNJ; DIRECTORY=\\\\Mas-dev-2014\\Sage\\Sage 100 Advanced ERP\\MAS90;";


    The DIRECTORY argument was incorrect in my original post. My apologies.
    Padding the escape char fixed the problem.
    \\\\Mas-dev-2014\\Sage\\Sage 100 Advanced ERP\\MAS90;

    My posts are losing formatting somehow. Am I the only one using Centos for posting?