|
-
May 30th, 2001, 10:17 AM
#1
Thread Starter
Fanatic Member
Calculated Fields in a VIEW????
I want to create a view that goes something like this:
Field1
FIELD2 = Exec StoredProcedure Field1AsParameter
Field1 is an ID
Field2 is calculated using a stored procedure and passing field1 as a parameter
this is what I have so far (doesn't work)
SELECT AccidentID,
NewCol AS EXEC GetClassification tblAccident.AccidentID
FROM dbo.tblAccident
any ideas???
Crispin
VB6 ENT SP5
VB.NET
W2K ADV SVR SP3
WWW.BLOCKSOFT.CO.UK
[Microsoft Basic: 1976-2001, RIP]
-
May 30th, 2001, 04:23 PM
#2
Member
Does the GetClassification sp pass back the value in an output variable?
If so, declare a variable to hold the return value and then run your select query using the variable.
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
|
Click Here to Expand Forum to Full Width
|