Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update nos registros
Message
From
29/08/2002 10:48:01
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Update nos registros
Miscellaneous
Thread ID:
00694935
Message ID:
00694935
Views:
45
Olá desenvolvedores,

Estou acessando um banco de dados SQL atraés dos comandos abaixo:
nConect = sqlconnect('minha conexão')
if nConect > 0
sqlexec(nConect,'select Codigo,Nome from Minha Tabela','Meu cursor local')
.
.
.
Estou setando as propriedades:

IF CURSORSETPROP('Tables','Minha Tabela') and ;
CURSORSETPROP('Buffering','DB_BUFOPTROW','Minha Tabela') and ;
CURSORSETPROP('UpdatableFieldList','nome,cidade','MinhaTabela')and ;
CURSORSETPROP('UpdateNameList','nome,cidade','Minha Tabela') and ;
CURSORSETPROP('KeyFieldList','Codigo','Minha Tabela') and ;
CURSORSETPROP('SendUpdates',.T.,'Minha Tabela')

Quando rodo e tento alterar um registro, o VFP retorna a seguinte mensagem:

'No update tables are specified. Use a Tables propriety of the cursor'

Como podemos ver, estou setando esta propriedade acima, e mesmo assim
o VFP insiste em pedir sua definicão.

Preciso saber:

Há alguma falha nos meus comandos?
Há algo mais a fazer, que definir meu usuário de servidor com permissão para update?

Se alguem puder me ajudar,

Antecipo agradecimentos.
Next
Reply
Map
View

Click here to load this message in the networking platform