RS First Dynamics NAV Blog


...from NAV 3.60 to NAV 2013
Archivio Posts
Anno 2015

Anno 2014

Anno 2013

Anno 2012

Anno 2011

Anno 2010

Anno 2009

Anno 2008

Anno 2007

Executing a stored procedure from Navision

...very Simple...


Define a NAV Automation Object

Name   DataType   Subtype   Length
conn   Automation   'Microsoft ActiveX Data Objects 2.8 Library'.Connection   


Code
CREATE(conn);
conn.Open('Provider=SQLOLEDB.1;Integrated Security=SSPI;Initial Catalog=[Servername];Data Source=[Databasename]');
conn.Execute('EXEC StoreProcedureName');
conn.Close;
CLEAR(conn);


Calling and Runnning With
ADO_Conne.Execute({sp name});

NB: You can pass parameters to stored procedures.

Bye.

martedì, 12 gen 2010 Ore. 19.02

Messaggi collegati


Statistiche
  • Views Home Page: 468.869
  • Views Posts: 885.717
  • Views Gallerie: 0
  • n° Posts: 343
  • n° Commenti: 0
Copyright © 2002-2007 - Blogs 2.0
dotNetHell.it | Home Page Blogs
ASP.NET 2.0 Windows 2003