Hi there
I'm working on Pervasive -> MS SQL migration project. The current problem is the Pervasive SP (not Function) can return a result set (table). The declaration is as follows:
CREATE PROCEDURE GetEmplPCSum (
in :EmplID integer,
in :StDate DateTime,
in :EndDate DateTime)
RETURNS (EmplID integer,
"Date" DateTime,
Regular integer,
"OT 1" integer,
"Prem 1" Integer,
Approved integer,
Reviewed integer)
AS ....
So far I could not find a way to convert the code above to the MS SQL analogue.
Can MS SQL SP return a table at all? Or only the Function can do it?
Thanks.