can we call functions from stored procedure in SQL Server
2005 ? How?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the main purpose of having conversation group?

487


How you trouble shoot when any job fails

1499


What the different components in replication and what is their use?

510


Do you know what is rank function?

613


What is the difference between functions and scalar functions?

563






What is "scheduled jobs" or "scheduled tasks"?

548


Explain trigger classes i.e. Instead of and after trigger?

479


Explain about SQL server 2005?

553


How to create a simple table to test triggers in ms sql server?

501


Explain the difference between control flow and data flow?

521


We are updating a field in sql and alter the row also.after giving the commit command the system is crashed.what will happen to the commands given,whether it will update and alter the table or not?

899


A user is a member of the public role and the sales role. The public role has select permission on all the tables. The sales role does not have select permission on some of the tables will the user be able to select from all tables?

516


What are the advantages of user defined function?

489


What is t-sql script to take database offline – take database online.

593


what is the difference between delete table and truncate table commands? : Sql server database administration

515