Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLServer
Message
From
04/07/2006 17:26:51
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
SQLServer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01133680
Message ID:
01133680
Views:
63
Considerem a seguninte situação:

ObjConexao = SQLSTRINGCONNECT(StrxConexao)
= SQLSETPROP(ObjConexao, 'Transactions', 2)
= SQLEXEC(ObjConexao, 'insert into tabela (teste, teste1) values (1, 2)')

se emitir
= SQLRollback(ObjConexao)
&& aqui beleza, o comando é revertido.

mas se um erro ocorrer ou a conexão for interrompida as atualizações feitas até aquele ponto são salvas, parece que o VFP80 SP1 esta emitindo...
= SQLCommit(ObjConexao)

isso é assim mesmo?
Gostaria que "SQLRollback(ObjConexao)" fosse emitido quando a conexão termina e não "SQLCommit(ObjConexao)".

alguém pode me ajudar?

Obrigado

Claudio
Claudio Silva
Analista Programador
claudio@grupoitaquere.com.br
Next
Reply
Map
View

Click here to load this message in the networking platform