... is NOT, is there a way to reestablish connection? Here is my sample code establishing connection. oCn := FW_OpenAdoConnection( "MSSQL,"+xSOURCE+","+xDATABASE2+","+xUSERID+","+XPASSWORD, .T. ) if oCn == nil ? "Failed to connect to Server" return ...
... lDebug := IF(EMPTY(cDebug),.F.,.T.) cRoot := "" cTitle := "CDM Web Freight Data Integration" xPROVIDER := "SQLOLEDB" xSOURCE := "x" xDATABASE := "x" xUSERID := "x" xPASSWORD := "x" // Init... SET DATE FORMAT TO 'mm/dd/yyyy' SET ...
... := "SELECT * FROM vessels WHERE Active=1 ORDER BY [DateCreated] DESC" TRY oSqlLoad:Open( cSqlLoad, 'Provider='+xPROVIDER+';Data Source='+xSOURCE+';Initial Catalog='+xDATABASE+';User Id='+xUSERID+';Password='+xPASSWORD ) CATCH oError MsgInfo("Failed to Connect to the Database" ...
... := "SELECT * FROM vessels WHERE Active=1 ORDER BY [DateCreated] DESC" TRY oSqlLoad:Open( cSqlLoad, 'Provider='+xPROVIDER+';Data Source='+xSOURCE+';Initial Catalog='+xDATABASE+';User Id='+xUSERID+';Password='+xPASSWORD ) CATCH oError MsgInfo("Failed to Connect to the Database" ...
... SQL 2012. Function did import 105 records (rows) before error was received. Here is my connection string: cSqlCon = 'PROVIDER=SQLNCLI11;Server='+xSOURCE+';Database='+xDATABASE+';Trusted_Connection=yes;' How do I resolve this? Application =========== Path and name: C:\cdm\winsql\cdmsql.exe (32 ...
... Shared or if you use Ms Access .. assuming your .mdb or accDb is in the same folder ... xPROVIDER := "Microsoft.Jet.OLEDB.4.0" xSOURCE := cLocation+"\Groom.mdb" // legacy ms access xPASSWORD := "xxxxxxxxx" xSTRING := 'Provider='+xPROVIDER+';Data Source='+xSOURCE+';Jet ...