Home Forums SQL Server 2005 T-SQL (SS2K5) Calling a stored procedure from within a function RE: Calling a stored procedure from within a function

  • Hi,

    I have a udf. I need to call a sp on the same server. I tried using the above code. But I am getting errors in the secnd step

    select * from openquery(MyServer, 'exec sp_who')go

    Can u send me some sample code.

    Thanx