Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_TALLY returns a 0 on a INSERT command
Message
From
27/08/2007 09:17:30
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Vista
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01249694
Message ID:
01250624
Views:
15
>>Actually, that is the problem. INSER-SQL does not effect _tally. But, according to Help it should.
>>
>>
>>create cursor test (name c(10))
>>_TALLY=99
>>insert into test values ("greg")
>>? _tally    && <== displays 99, not 1
>>
>
>We seems to be going in circles. According to help it shoudn't affect _TALLY unless it used with a query. See http://msdn2.microsoft.com/en-us/library/8472wd76(VS.80).aspx: "The INSERT - SQL command changes _TALLY if a SQL SELECT command is used to specify the data to insert".
>
>INSERT INTO...SELECT FROM...
>
Ok. I agree. Besides, I found a workable work-around. So, I conclude this discussion. Thanks to all and their suggestions.
Greg Reichert
Previous
Reply
Map
View

Click here to load this message in the networking platform