Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 create procedure prcDisplaypositionStatatus@code (

Author  Topic 

blessing
Starting Member

2 Posts

Posted - 2011-03-02 : 09:49:10
CREATE procedure prcDisplaypositionStatatus @PCode char (4)
AS
BEGIN
DECLARE @Description char (30)
DECLARE @budget int
DECLARE @CurrentStrength int
DECLARE @ReturnValue int
EXEC @RETURNvALUE = PrcGetpositionDetail @pcode/
@Description OUTPUT,
@Budget OUTPUT,
@CurrentStength OUTPUT
IF (@RETURNvALUE = 0)
BEGIN
PRINT 'THE Status for the Position: '
+ @Description
PRINT 'Budgeted Strength
+ CONVERT( char(30), @budget)
PRINT 'Current Strength
+ Convert (char(30), @CurrentStrength)
Select cRequisitionCode,VRegion,siNoOfVacancy
FROM Requisition WHERE cPositionCode=@Pcode
END
ELSE
PRINT 'No records for the given position code'
END



please assist me with this because my is tyde to it.....




tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-03-02 : 14:03:27
What is your question/problem?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -