<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>3 Feb 2017 14:46:59 Z</lastBuildDate><pubDate>8 Jan 2015 17:29:57 Z</pubDate><description>Example to Run an MS SQL Stored Procedure with Windev, Webdev using HExecuteSQLQuery (Exemplo para Executar uma MS SQL Stored Procedure com o Windev, Webdev usando o HExecuteSQLQuery)&#13;
&#13;
CODIGO MSSQL:&#13;
&#13;
[code:sql]&#13;
--PEGA O VALOR DA ULTIMA CORRIDA&#13;
&#13;
USE [producao]&#13;
GO&#13;
&#13;
CREATE PROCEDURE NG0002_Procedure_UltimaCorrida&#13;
AS&#13;
&#13;
DECLARE @num_corrida int;&#13;
&#13;
SELECT @num_corrida = num_ultima_numera FROM numeracao WHERE ide_numera = 'ACT263_CORRIDA' AND num_ano_refere = year(getdate());&#13;
&#13;
SELECT @num_corrida AS num_corrida;&#13;
&#13;
return @num_corrida;&#13;
&#13;
GO&#13;
&#13;
[/code]&#13;
&#13;
&#13;
&#13;
&#13;
CODIGO NO WINDEV, WEBDEV - USO EM WEBSERVICE:&#13;
&#13;
//Executar procedure&#13;
[code:wl]&#13;
numero_corrida is int = 0&#13;
&#13;
MyProcedureUltimaCorrida is Data Source&#13;
&#13;
IF HExecuteSQLQuery(MyProcedureUltimaCorrida, ConnNativa, hQueryWithoutCorrection,"NG0002_Procedure_UltimaCorrida") THEN&#13;
&#13;
HReadFirst(MyProcedureUltimaCorrida, num_corrida)&#13;
&#13;
   WHILE HOut() = False&#13;
      ok = HReadNext(MyProcedureUltimaCorrida, num_corrida)&#13;
      numero_corrida = MyProcedureUltimaCorrida.num_corrida&#13;
  END&#13;
&#13;
ELSE&#13;
        Error(HErrorInfo())&#13;
END&#13;
&#13;
Trace(numero_corrida)&#13;
&#13;
[/code]&#13;
&#13;
Veio valor sem dar erro no Trace()</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49797-example-run-sql-stored-procedure-with-windev-webdev/read.awp</link><title>Example to Run an MS SQL Stored Procedure with Windev, Webdev using HExecuteSQLQuery (Exemplo para Executar uma MS SQL Stored Procedure com o Windev, Webdev usando o HExecuteSQLQuery)</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>Boller</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49797-example-run-sql-stored-procedure-with-windev-webdev-60651/read.awp</comments><pubDate>3 Feb 2017 14:46:59 Z</pubDate><description>Exemplo&#13;
&#13;
[code:wl]&#13;
PROCEDURE Existdatabase(TOKEN, CNPJ)&#13;
&#13;
ok is boolean = False&#13;
&#13;
Resultado, Msg is string = ""&#13;
&#13;
IF TOKEN…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49797-example-run-sql-stored-procedure-with-windev-webdev-60651/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49797-example-run-sql-stored-procedure-with-windev-webdev-60651/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49797-example-run-sql-stored-procedure-with-windev-webdev/read.awp">Example to Run an MS SQL Stored Procedure with Windev, Webdev using HExecuteSQLQuery (Exemplo para Executar uma MS SQL Stored Procedure com o Windev, Webdev usando o HExecuteSQLQuery)</source><title>Re: Example to Run an MS SQL Stored Procedure with Windev, Webdev using HExecuteSQLQuery (Exemplo para Executar uma MS SQL Stored Procedure com o Windev, Webdev usando o HExecuteSQLQuery)</title></item><item><author>Boller</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49797-example-run-sql-stored-procedure-with-windev-webdev-49799/read.awp</comments><pubDate>8 Jan 2015 17:33:26 Z</pubDate><description>Informação adicional&#13;
&#13;
http://doc.windev.com/en-US/?5515009&amp;productversion=XXA150056M</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49797-example-run-sql-stored-procedure-with-windev-webdev-49799/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49797-example-run-sql-stored-procedure-with-windev-webdev-49799/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49797-example-run-sql-stored-procedure-with-windev-webdev/read.awp">Example to Run an MS SQL Stored Procedure with Windev, Webdev using HExecuteSQLQuery (Exemplo para Executar uma MS SQL Stored Procedure com o Windev, Webdev usando o HExecuteSQLQuery)</source><title>Re: Example to Run an MS SQL Stored Procedure with Windev, Webdev using HExecuteSQLQuery (Exemplo para Executar uma MS SQL Stored Procedure com o Windev, Webdev usando o HExecuteSQLQuery)</title></item><item><author>Boller</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49797-example-run-sql-stored-procedure-with-windev-webdev-49798/read.awp</comments><pubDate>8 Jan 2015 17:30:09 Z</pubDate><description>:merci:</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49797-example-run-sql-stored-procedure-with-windev-webdev-49798/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49797-example-run-sql-stored-procedure-with-windev-webdev-49798/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49797-example-run-sql-stored-procedure-with-windev-webdev/read.awp">Example to Run an MS SQL Stored Procedure with Windev, Webdev using HExecuteSQLQuery (Exemplo para Executar uma MS SQL Stored Procedure com o Windev, Webdev usando o HExecuteSQLQuery)</source><title>Re: Example to Run an MS SQL Stored Procedure with Windev, Webdev using HExecuteSQLQuery (Exemplo para Executar uma MS SQL Stored Procedure com o Windev, Webdev usando o HExecuteSQLQuery)</title></item></channel></rss>
