MSSQL and XBROWSE

MSSQL and XBROWSE

Postby Jack » Wed Nov 03, 2021 3:38 pm

Hi,
With standard DBF open in SHARED mode, when a table is open and displayed with XBROWSE on 2 computer in the network, if 1 user update a record , the change is visible on the xbrowse on the other computer . (There is an automatic refresh)

How is it possible with RecordSet ?
I think i have to change the CursorType .


oRsa:= CREATEOBJECT( "ADODB.Recordset" )
oRsa:LockType := 3 // lockoportunistic
oRsa:CursorType := 1 // opendkeyset
oRsa:CursorLocation := 3 // local cache
*

Thanks,

Philippe
Jack
 
Posts: 288
Joined: Wed Jul 11, 2007 11:06 am

Re: MSSQL and XBROWSE

Postby Rick Lipkin » Thu Nov 04, 2021 9:15 pm

Jack

You are going to have come up with a timer that does some sort of oLbx:ReFresh() and or oRs:Requery() at some selected interval .. Hopefully someone will chime in here with a timer code example ..

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2666
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 74 guests