User defined function within another User Defined function
-
Hi - As the subject lines suggests - can we do this in SQL 2005? suppose I have a function_A - does certain calculations.
CREATE another_function_B (@driver int) RETURNS int AS BEGIN declare @output as int -- checks some certain type of conditions and then executes function_A select @output = dbo.function_A(@driver) return @output END
-
Hi - As the subject lines suggests - can we do this in SQL 2005? suppose I have a function_A - does certain calculations.
CREATE another_function_B (@driver int) RETURNS int AS BEGIN declare @output as int -- checks some certain type of conditions and then executes function_A select @output = dbo.function_A(@driver) return @output END
I don't see why not. Why didn't you just try it and see?
Upcoming Scottish Developers events: * Glasgow: Tell us what you want to see in 2007 My: Website | Blog | Photos
-
I don't see why not. Why didn't you just try it and see?
Upcoming Scottish Developers events: * Glasgow: Tell us what you want to see in 2007 My: Website | Blog | Photos
-
Hi - As the subject lines suggests - can we do this in SQL 2005? suppose I have a function_A - does certain calculations.
CREATE another_function_B (@driver int) RETURNS int AS BEGIN declare @output as int -- checks some certain type of conditions and then executes function_A select @output = dbo.function_A(@driver) return @output END