can we call functions from stored procedure in SQL Server
2005 ? How?
Answers were Sorted based on User's Feedback
Answer / monal
Yes you can call function from stored procedure, so far i
haven't had a chance to use it, but still would like to give
it a shot:
As per my guess you can call function in SP using select
statement as you would execute function usually.
Is This Answer Correct ? | 26 Yes | 5 No |
Answer / suraj
Yes, we can.
Eg:
create proc Test
as
select getdate()
GO
-- EXEC Test
-- in the above query getdate() is a system function.
Is This Answer Correct ? | 16 Yes | 5 No |
How to write character string constants or literals in ms sql server?
how you can list all the tables in a database?
What is unpivot?
how would you write a sql query to compute a frequency table of a certain attribute involving two joins? What changes would you need to make if you want to order by or group by some attribute? What would you do to account for nulls?
What is built-in function?
What is Primary key and foreign key? Give an example
Is it possible for a stored procedure to call itself or recursive stored procedure?
Is port 1433 secure?
How do I run sql server 2014?
What is the maximum size of column in sql server?
How to search for a string in all stored procedure in sql server?
List few advantages of stored procedure.