You are here: Re: Return from store procedure. « MsSQL Server « IT news, forums, messages
Re: Return from store procedure.

Posted by Hugo Kornelis on 09/30/12 11:26

On Mon, 12 Sep 2005 13:56:43 GMT, vassone wrote:

(snip)
>The code I'm using is below and this keeps giving me "Multiple-step OLE DB
>operation generated errors. Check each OLE DB status value, if available. No
>work was done."

Hi vassone,

Try adding the command
SET NOCOUNT ON
as first command in the stored procedure (i.e. directly after the AS
keyword, before the INSERT)

CREATE PROCEDURE name
@parm datatype [OUTPUT],
...
AS
SET NOCOUNT ON
INSERT INTO table (...)
VALUES (...)
SET @output_var = SCOPE_IDENTITY()
GO

Best, Hugo
--

(Remove _NO_ and _SPAM_ to get my e-mail address)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация