Everyone's gone for the day and I need help. Working in Management Studio and I've been given a function to run that needs two parameters, an ID# and a date. I have a table with the ID#s and dates to be used, but having trouble figuring how to pass info to function and returning four fields into a table.
The function is in one database and my source table is in another.
EXEC PPP.UTIL.CALC_DOC_ELIG_SEGS_V2 '01234567','7/13/2009'
where PPP is the database the function resides in.
was attemtping this
SELECT
PPP.UTIL.CALC_DOC_ELIG_SEGS_V2 [ID#], [UseDate]
,UseDate -- to have output of date entered
INTO #TEST_A
FROM MINE.InformationTable
The function returns four fields: ID#, Row#, StartDate, EndDate
Thanks in advance for any direction you can provide.
The function is in one database and my source table is in another.
EXEC PPP.UTIL.CALC_DOC_ELIG_SEGS_V2 '01234567','7/13/2009'
where PPP is the database the function resides in.
was attemtping this
SELECT
PPP.UTIL.CALC_DOC_ELIG_SEGS_V2 [ID#], [UseDate]
,UseDate -- to have output of date entered
INTO #TEST_A
FROM MINE.InformationTable
The function returns four fields: ID#, Row#, StartDate, EndDate
Thanks in advance for any direction you can provide.