-
I can't get a float vale back
I am codeing a Stored Procedure that is working up to a point where I try to set a variable to dynamically retrieve a float value back from a table
The following code is inside a While Loop
example
...
WHILE myCounter is < 19
Select @fPercent = 30
Select @vCurveType = 'One'
...
IF Condition1
...
IF condition2
begin
exec @fCurveFactor = 'SELECT ' + @vCurveType + 'FROM tlbCurves WHERE PercentComplete = ' + @fPercent
...
end return
ELSE
...
If I hard code the Select statement it returns a valid value (like .024
The way it is my return = 0
any ideas on how I can acomplish my goal?
Can the Column name be set using a variable?
Thanks for any help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|