General information
Title:
Update nos registros
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only