Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stored Procedure - Including the parameter as a field
Message
From
14/09/2004 14:31:21
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Databases
Title:
Stored Procedure - Including the parameter as a field
Miscellaneous
Thread ID:
00942035
Message ID:
00942035
Views:
54
Hello,
Here is my stored procedure:
ALTER PROCEDURE sp_storedprocedurename
(
	@Parm1 char(8)
         @Parm2 char(11)
)
AS
	SET NOCOUNT ON;
SELECT field1, field2, field3 FROM wire_by_part WHERE (field1 = @Parm1)
What I would like to do is return @Parm2 as a column in my returned dataset. I tried having SELECT field1, field2, field3, (@Parm2 As field4) as my Select statement, but I got an error. Any advice? Thanks!

-MAC
Very fitting: http://xkcd.com/386/
Next
Reply
Map
View

Click here to load this message in the networking platform