Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE Connection settings
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
MS SQL Server
Divers
Thread ID:
01552647
Message ID:
01552649
Vues:
54
It's strange,

ms1=0 indicate command execution (Asynchronous execution=.T.) but connection settings in picture say AE=.F.

You can fix it:
DO WHILE ms1=0
  ms1 = sqlexec(mconn,"" )
ENDDO
MartinaJ

>I've got a stored procedure in SQL that is working for every other record that I'm trying to move from VFP.
>
>I build my sql statement and my call to the SP is
>
>
>sele MasterFile
>** set up parameters
>
>m.ErrMsg = ""   && this is an OUTPUT Parameter to return any error message from the SP
>ms1 = sqlexec(mconn, 'exec dbo.InsMaster <<Parameter List>>)
>if !empty(m.ErrMsg)
>  **show error in messagebox
>endif
>errcnt = AERROR(mErrArr)
>if errcnt > 0
>  ** display Aerror msg in messagebox
>endif
>
>rele all like mErrArr
>
>
>The first call works and ms1 = 0
>The second call does not work and ms1 = 1
>
>m.ErrMsg is empty
>AERROR does not generate anything.
>
>Attached is a screenshot of my connection
>
>Anything look out of place? Any suggestions?
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform