<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.fr.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>19 Apr 2019 15:53:44 Z</lastBuildDate><pubDate>19 Apr 2019 15:53:44 Z</pubDate><description>Bonjour à tous,&#13;
&#13;
J’exécute une procédure stockée se trouvant sur un serveur MSSQL. Je n'ai pas d'erreur lors de l'exécution mais je ne parviens pas à récupérer les résultats. &#13;
Si j'exécute la commande:  exec etat_NBD_rapport_mensuel_encaissements 0,'01/03/2019',1,' &#13;
directement dans MSSQL Management Studio, j'ai pourtant bien un tableau de résultats.&#13;
&#13;
Avez-vous une idée ?&#13;
&#13;
Voici mon code:&#13;
&#13;
[code:wl]&#13;
nNumConnexion est un entier = SQLConnecte("IPdemonserveur","utilisateur","motdepasse","nomdemabase","oledb",hOledbSQLServer)&#13;
&#13;
SI nNumConnexion &lt;&gt; 0 ALORS&#13;
	&#13;
	req est une chaîne="Req"+DonneIdentifiant()&#13;
	cmd1 est une chaîne="etat_NBD_rapport_mensuel_encaissements 0,'01/03/2019',1,''"&#13;
					&#13;
	SI PAS SQLExec(cmd1,req) ALORS	&#13;
		&#13;
		SQLInfoGene()&#13;
		Info("erreur:" +SQL.Erreur)&#13;
		&#13;
	SINON	&#13;
		SQLTable(req, TABLE_MaTable)&#13;
	FIN&#13;
	SQLFerme(req)&#13;
	&#13;
	&#13;
SINON&#13;
	// La connexion a échoué : affichage d'un message explicatif&#13;
	SQLInfoGene()&#13;
	Erreur("La connexion à la source de données" + ...&#13;
	"a échoué."+ RC +...&#13;
	"Code erreur : " + SQL.Erreur + RC + SQL.MesErreur)&#13;
FIN&#13;
&#13;
SQLDéconnecte()&#13;
[/code]</description><ttl>30</ttl><generator>WEBDEV</generator><language>fr_FR</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229604-resultats-procdure-stockee-sur-mssql/read.awp</link><title>Résultats d'une procdure stockée sur MSSQL</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
