Live Traffic Feed

Showing posts with label function. Show all posts
Showing posts with label function. Show all posts

Friday, May 1, 2015

call store procedure from function in sql server

Leave a Comment
Function dbo.yourFunctionName
(
yourPara
)
RETURN TABLE
AS
RETURN
(
SELECT * FROM OPENROWSET('SQLNCLI','Server=yourServerName;UID=yourUserName;Pwd=yourPassword;','SET FMTONLY OFF; EXEC yourDataBase.dbo.yourSpName @yourPara') as C
)
Read More