Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLEXEC, records not ordered
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
SQLEXEC, records not ordered
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01579404
Message ID:
01579404
Vues:
53
Hi

I am uploading data to database via SQLEXEC command, ODDBC, in phpmyadmin, MySQl database.

It works, but problem records are not ordered.

If my my table: 1,2,3,4,5...

Remotely it becomes: 1,2,4,5...

As scan commmad treat records one by one, I can not understand why it happens.

Code is as below:

*******************************************************************

SELECT certificados

SET ORDER TO

SCAN FOR cert_pt = 0 AND lib = 1


thisform.pageframe1.page1.status.Value = "Enviando certificados...: " + ALLTRIM(Reembolso.cl)

Text to cSQL Noshow Pretext 1+2+4+8

INSERT INTO certificado
(nome,nome_cert, email,endereco,bairro,cidade,CEP,estado,telefone, CPF,horas,curso,data_curso,dt_pt_cert,code,forma_env )
VALUES (?nome, ?nome_cert,?e_mail, ?end,?bairro, ?cidade,?cep,?est,?telefone, ?cpf, ?horas,?curso,?data_curso,?dt_pt_cert,?cod,?forma_env )


ENDTEXT

asa=SQLEXEC(lnHandle,cSQL )

IF asa = 1

replace certificados.cert_pt WITH 1

DPT = DATE ()

SELECT certificados





ELSE


return

ENDIF


ENDSCAN
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform