Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help! Remote data update problem
Message
From
08/04/1999 10:37:30
Christopher Holtz
Integral Computer Services, Inc.
Rochester, New York, United States
 
 
To
07/04/1999 18:06:31
Bob Lucas
The WordWare Agency
Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00205969
Message ID:
00206425
Views:
17
I tried that already. The VFP view designer creates a field called
Exp with a value of the string "Next_Trans# as Next_trans"... wierd behavior.

Additionally, I've tried creating the view programatically, but get the orininal error. Oddly, I also get the same error when using Sql Pass through.
The other alternative would be to alter the Btrieve data dictionary file and remove the "#" from the data structure directly.

All I am doing is getting the next transaction number and updating the incrementor table - whose functionality is already hidden in a class. So, I think it is more cost-effective to continue using dbftrieve in this one area.

Later, when I've more time and less deadlines (yeah right), I'll research further.

- Chris Holtz


>You might also try another method in the view designer.
>
>In the function and expression box of your view try
>Next_Trans# as Next_trans
>
>This should change the name of the field and the syntax may pass through ODBC okay. I remember doing this one time before with a field that had a hyphen in it and this method translated it.
>
>
>>Interesting ideas. Unfortunately I'm connecting to Btrieve data, rather than SQL. I'm a little unfamiliar with SQL server, but by what I hear form you, are you saying you can make views of your SQL data within SQL server? If so, that is pretty handy.
>>
>>Thank you for the input. For the time being, I'm using (Gag) Dbftrieve to extract the problem field.
>>
>>- Chris Holtz
>>
>>>Your best bet is to create a remote view of the table that does not have the # character in the name and do your updates through this view. If you are using SQL Server this remote view would be a SQL Server view.
>>>
>>>I usually create views of all my SQL Server tables and then connect to the view through VFP remote views rather than the table.
>>>
>>>
>>>>I am connecting remotely to a table that has the field "Next_Trans#"
>>>>
>>>>Whenever I try to update the field, VFP comes back with Field Not Found Next_Trans
>>>>
>>>>It seems that VFP is having a problem with the # in the field name. Has anyone ever dealt with this kind of behavior?
>>>>
>>>>Thank you,
>>>>Chris Holtz
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform