Re: Procedure question

[email protected]
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
On Wed, Mar 17, 2010 at 09:49:38AM -0400, Fernando wrote:

> I want to know the correct way to
> handle the output parameters I'm retrieving. 

http://msdn.microsoft.com/en-us/library/aa936952%28v=SQL.80%29.aspx

You must fetch the result rows with dbnextrow() or cancel them.  (If you cancel them, I doubt you'll reliably be able to retrieve output parameters, though.) 

Binding is optional.  dbbind() is just a convenient way to have the library populate your program's variables.  

Otherwise your code looks good.  

I hope that answers your question.  

--jkl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.