General information
Title:
Update nos registros
Olá Lassala. Estou enviando esta thread p/ vc porque ainda não obtive restosta eficaz desta quando a enviei na ultima quinta.
*--------------------------
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','Meu cursor local') and ;
CURSORSETPROP('Buffering','DB_BUFOPTROW','Meu cursor local') and ;
CURSORSETPROP('UpdatableFieldList','nome,cidade','Meu cursor local')and ;
CURSORSETPROP('UpdateNameList','nome,cidade','Meu cursor local') and ;
CURSORSETPROP('KeyFieldList','Codigo','Meu cursor local') and ;
CURSORSETPROP('SendUpdates',.T.,'Meu cursor local')
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 vc 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