Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot copy view cursor data to a table
Message
From
22/02/2006 17:07:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01098273
Message ID:
01098285
Views:
13
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform