Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to commit all RVs & SPTs by one ConnectionHandle num
Message
 
To
07/12/2006 06:04:49
Aye Mya Thida Kyaw
Ingenuity Microsystems Sdn Bhd.
Kuala Lumpur, Malaysia
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01175529
Message ID:
01175537
Views:
9
Hi Aye,

ASESSIONS() fill array with all VFP data sessions
ASQLHANDLES() fill array with all ODBC handles
AUSED() fill array with all use alias for session
CURSORGETPROP("ConnectHandle","alias") return odbc handle for remote view/SPT
CURSORGETPROP("SourceType","alias") return type of source type (must be = 2)
CURSORGETPROP("SQL","alias") return SELECT command for RV (must be fill, if empty, then it is cursor created by SPT)


MartiJ

>Dear All,
>
>Having a problem as follow.
>I'm using both RVs and SPTs in my application.
>At first i establish the connection :
>
>open database mydatabase share
>
>*!* ("mydatabase" is holding all the remote views by a connection string called "myConnection")
>
>posqlconn = sqlconnect('myConnection')
>
>The problem exist when i send SQLCOMMIT().
>Everytime when i use a remote view, I got a new different "ConnectionHandle" number and meanwhile the "posqlconn" is also holding a separate connection number.
>So when I commit a remote view :
> lnhandle = getcursorprop("ConnectionHandle")
> lncommit = SQLCOMMIT(lnhandle)
>I've to submit every particular views as I opened.
>
>For the SPT statements, I always use like :
> sqlexec(posqlconn,"update myTable set custID='A0001' where orderID='0001'")
> Therefore, I have to commit the "posqlconn" also.
>
>Because of this, I'm having "Transaction Log" problem.
>Is there a way getting a same connection handle number for all remote views?
>Or any way to commit alltogether at once by using same connection handle number?
>I do appreciate so much if somebody give me suggestions on this matter.
>
>Thanks in advance
>Mya
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform