Advertisement

04.29.2006 at 11:07AM PDT, ID: 21832256
[x]
Attachment Details

commit sqlresult table changes to sql server database

Asked by solohayuno in FoxPro Database

Tags: , ,

I have this code:

SET CENTURY ON
SET MULTILOCKS ON
nConnHandle = SQLCONNECT('RDB','sa','')
SQLEXEC(nConnHandle,'select * from sqltable')
CURSORSETPROP('Buffering', 5, 'sqlresult')
UPDATE sqlresult;
SET data = DATETIME(1910,1,1,IIF(SUBSTR(RTRIM(LTRIM(data1)),5,2)='AM',0,12)+VAL(SUBSTR(RTRIM(LTRIM(data1)),1,2)),VAL(SUBSTR(RTRIM(LTRIM(data1)),3,2))) ;
WHERE Day = .t.
TABLEUPDATE(.t.)
SQLCOMMIT(nConnHandle)
And I want to commit this changes to the data column on sqltable. All changes get suscessfull on the VFP buffer but cannot commit to the sql server, why?

What I have to do to commit the table on VFP buffer to an sql server database?

This question is easy, but I need urgent assintance. I have searched this site, to find something that give an idea what's wrong and why it doesn't commit, but haven't found anything.Start Free Trial
 
Loading Advertisement...
 
[+][-]04.29.2006 at 12:31PM PDT, ID: 16569922

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: FoxPro Database
Tags: sqlresult, commit, sqlconnect
Sign Up Now!
Solution Provided By: CarlWarner
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.29.2006 at 01:07PM PDT, ID: 16570020

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.30.2006 at 12:21AM PDT, ID: 16571363

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.30.2006 at 04:42PM PDT, ID: 16574381

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.03.2006 at 05:53PM PDT, ID: 16601852

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32