Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert record in MS-SQL Server DB
Message
From
20/10/2003 19:17:57
 
 
To
20/10/2003 18:53:26
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00840493
Message ID:
00840500
Views:
14
>I'm trying to update a MS-SQL table by using the VFP INSERT statements once a view is opened.
>
>Also, Do I need to make the connection with ODBC? Or, is there another way to do it.
>
>Any help is greatly appreciated.
>
>Craig

If you're using a view, then you're already using ODBC - or do you mean should you be using a view?
In VFP, I like views for data mods (insert,update,delete) and SPT for calling stored procs.

So, what's the problem? Is the record not inserted into MSSQL? If not, check that the view has SendUpdates set to .T. and all appropriate fields are marked Updatable, and the key fields are set as well.
Also, the record won't be updated to MSSQL until TableUpdate() is issued either expressly or implicitly (by moving the record pointer - row buffering only).
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform