Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remote Cursor Error
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Remote Cursor Error
Divers
Thread ID:
00263247
Message ID:
00263247
Vues:
39
I am trying to update a SQL Server Table but get an error.
No update tables are specified. Use the Tables property of the cursor (Error 1491). Can anybody help.. below is the code I'm using..

TIA
********************************************************************
nc= sqlconnect("CollinsBackOffice","sa","")
lcSQL = [Select * from PUBLISHER order by name]
SQLEXEC(NC,lcSql,'test')

select test

SQLSETPROP(nc,"Transactions",2)
SQLSETPROP(nc,'BatchMode',.F.)
SQLSETPROP(nc,'Asynchronous',.F.)

CursorSetProp('SendUpdates',.T.,'test')
CursorSetProp('Tables','PUBLISHER','test')
CursorSetProp('UpdateType', 1,'test')
CursorSetProp('BatchUpdateCount', 1,'test')
CursorSetProp('KeyFieldList','publisherid','test')

CursorSetProp('UpdateNameList','publishercode publishercode','test')
CursorSetProp('UpdatableFieldList','publishercode','test')

CursorgetProp('Tables','test') && PUBLISHER
tableupdate(.t.)
cursorgetProp('Tables','test') && PUBLISHER
Fred Besterwitch, MCP

The harder you work. The luckier you get.
Répondre
Fil
Voir

Click here to load this message in the networking platform