Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mixed parameters and output parameters
Message
 
 
To
11/08/2011 06:33:06
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01520644
Message ID:
01520664
Views:
27
Sorry, haven't checked the whole thread yet:
EXEC @return_value = [dbo].[usp_Insert_Individual]
@FamilyRef = NULL,
@StatusRef = 87,
@SoundexKey = NULL,
@ExternalRef = NULL,
@Title = @hf_in_title,
@Forenames = @hf_in_forename,
@Initials = @hf_in_initial,
@Surname = @hf_in_surname,
@Honours = NULL,
@NewIndividualRef = @NewIndividualRef OUTPUT -- change here
>Hi
>
>I'm not suire hwo I do this.
>
>I have a stored procedure that I'm passing parameters to and I want to pass back a result.
>
>So I have
>
> EXEC @return_value = [dbo].[usp_Insert_Individual]
> @FamilyRef = NULL,
> @StatusRef = 87,
> @SoundexKey = NULL,
> @ExternalRef = NULL,
> @Title = @hf_in_title,
> @Forenames = @hf_in_forename,
> @Initials = @hf_in_initial,
> @Surname = @hf_in_surname,
> @Honours = NULL,
> @NewIndividualRef OUTPUT
>
>but I get an error
>
>Must pass parameter number 27 and subsequent parameters as '@name = value'. After the form '@name = value' has been used, all subsequent parameters must be passed in the form '@name = value'.
>
>So whats the best way to return the id of the new record inserted by usp_Insert_Individual.
>
>Thnaks
>
>Nick
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform