I need to call a stored procedure and return all rows where the stored procedure requires three input parameters: one for organization ID, one for location ID, and one for user status:
SQL EXECUTE [Compliance].[dbo].[UserReport]
@OrganizationId = ,
@LocationId = ,
@UserStatus = ;
I tried doing a nested for...next loop, but there are over a million combinations of organizations and locations, so that route just isn't feasible. Does anyone have any other ideas on how I might be able to accomplish this?
Thanks!
--Matt