Search found 26 matches: xsource

Return to advanced search

FW_OpenAdoConnection reconnect

... 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 ...
by cdmmaui
Wed Dec 13, 2023 10:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_OpenAdoConnection reconnect
Replies: 6
Views: 538

Re: xBrowse jpg in SQL-database

... oSql:CursorLocation := 3 // local cache oSql:LockType := 3 // lock opportunistic // Init xCONNECT := 'Provider='+xPROVIDER+';Data Source='+xSOURCE+';Initial Catalog='+xDATABASE+';User Id='+xUSERID+';Password='+xPASSWORD aImages := Directory( cCft + "*.*" ) FOR nX1=1 TO LEN(aImages) ...
by cdmmaui
Fri Nov 08, 2019 1:14 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse jpg in SQL-database
Replies: 19
Views: 2998

Re: Import Chinese Characters from XLS

... 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 ...
by cdmmaui
Thu Feb 21, 2019 4:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Import Chinese Characters from XLS
Replies: 4
Views: 949

Re: Multiple Dimension Array in Combobox

... := "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" ...
by joseluisysturiz
Sun May 27, 2018 2:59 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Multiple Dimension Array in Combobox
Replies: 24
Views: 4025

Re: Multiple Dimension Array in Combobox

... := "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" ...
by cdmmaui
Sat May 26, 2018 4:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Multiple Dimension Array in Combobox
Replies: 24
Views: 4025

MS SQL Dumb Question

... oSqlSeek:CursorLocation := 3 // local cache oSqlSeek:LockType := 3 // lock opportunistic // Init... xSQL := 'Provider='+xPROVIDER+';Data Source='+xSOURCE+';Initial Catalog='+xCATALOG+';User Id='+xUSERID+';Password='+xPASSWORD // Message.. oSay:SetText( "Checking for CBP ACE AES Response Messages ...
by cdmmaui
Tue May 10, 2016 10:27 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: MS SQL Dumb Question
Replies: 0
Views: 422

XML Read Problems

... + CHR(10) , ; cSource := "c:\xml\inbox\" , ; cHistory := "c:\xml\inbox\history\" , ; xPROVIDER := "SQLOLEDB" , ; xSOURCE := "9.9.9.9" , ; xDATABASE := "DB-NAME" , ; xUSERID := "USERID" , ; xPASSWORD := "PASSWORD" , ; cOperations ...
by cdmmaui
Tue Apr 26, 2016 1:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: XML Read Problems
Replies: 1
Views: 1055

Re: DBF to SQL script tool

... 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 ...
by cdmmaui
Thu Jul 03, 2014 9:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF to SQL script tool
Replies: 50
Views: 13636

Problem connecting to MSSQL 2008R2 via Windows Auth.

... 2008 R2 server via Windows Authentication using the following string. xPROVIDER := "SQLOLEDB" xDATABASE := "MobileFrame" , ; xSOURCE := "192.168.1.11" xUSERID := "DOMAIN\UserName" xPASSWORD := "Password" xSQL := 'Provider='+xPROVIDER+';Data Source='+xSOURCE+';Initial ...
by cdmmaui
Mon Oct 28, 2013 4:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem connecting to MSSQL 2008R2 via Windows Auth.
Replies: 2
Views: 696

Re: SqlQuery and Microsoft.ACE.OLEDB.12.0 error

... 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 ...
by Rick Lipkin
Sun Oct 13, 2013 3:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: SqlQuery and Microsoft.ACE.OLEDB.12.0 error
Replies: 14
Views: 3756

Re: string connection MS Access

if I used function
oCon := FW_OpenAdoConnection( xSOURCE + "," + xPASSWORD)

the database opened good, but the function FW_OpenRecordSet can't open the table

cSQL:="select idklienta, nazwa, adres, nip from Klienci"
oRes := FW_OpenRecordSet( oCon, cSQL )

best regards
kajot
by kajot
Fri Aug 23, 2013 6:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: string connection MS Access
Replies: 19
Views: 3679

Re: string connection MS Access

Please use:
oCon := FW_OpenAdoConnection( { xSOURCE, xPASSWORD } )

or

oCon := FW_OpenAdoConnection( xSOURCE + "," + xPASSWORD)
by nageswaragunupudi
Wed Aug 21, 2013 10:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: string connection MS Access
Replies: 19
Views: 3679

Re: string connection MS Access

thanks for answer but if I use cPath := cFilePath( ExeName() ) xSOURCE := cPATH+"waga.mdb" xPASSWORD := "123456" oCon := FW_OpenAdoConnection( xSOURCE,xPASSWORD) cSQL:="select idklienta, nazwa, adres, nip from Klienci" oRes ...
by kajot
Wed Aug 21, 2013 4:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: string connection MS Access
Replies: 19
Views: 3679

Moving DBFCDX to MS SQL

... opportunistic // Set SQL string... cSql := "SELECT * FROM SalesOrderHeader" TRY oSql:Open( cSql, 'Provider='+xPROVIDER+';Data Source='+xSOURCE+';Initial Catalog='+xCATALOG+';User Id='+xUSERID+';Password='+xPASSWORD ) CATCH oError MsgWait("Failed to Connect to the Database") ...
by cdmmaui
Mon Mar 25, 2013 3:56 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Moving DBFCDX to MS SQL
Replies: 2
Views: 641

Refresh SQL Select in Listbox

... := 3 // lock opportunistic // Set SQL string... cSql := "SELECT * FROM mr" TRY oSql:Open( cSql, 'Provider='+xPROVIDER+';Data Source='+xSOURCE+';Initial Catalog='+xDATABASE+';User Id='+xUSERID+';Password='+xPASSWORD ) CATCH oError MsgWait("Failed to Connect to the Database") ...
by cdmmaui
Wed Aug 22, 2012 2:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Refresh SQL Select in Listbox
Replies: 5
Views: 1315
Next

Return to advanced search