Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot copy view cursor data to a table
Message
De
22/02/2006 17:07:26
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01098273
Message ID:
01098285
Vues:
12
>We have data in a SQL table and I created a quick view to pull out a subset of data and then tried to do a COPY TO "tempfile.dbf" and I get an error: "No key columns are specified for the update table 'dbo.sqltablename'. Use the KeyFieldList property of the cursor."
>There is no Key on the SQL table and so I can't check a field to make it a key field in MODIFY VIEW.
>
>Any thoughts?

You cannot update w/o keyfields. Check all if there is none.
But I didn't understand why would you ever need an updatable view if your only intent is to copy some data from it to a local table. You might think of SQLExec() too.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform