StrataFrame Forum

StrataFlix: Error Searching People

http://forum.strataframe.net/Topic26251.aspx

By Bill Cunnien - 3/1/2010

The following error was received when I attempted to run a people search, then double-clicked on one of the results:



Could not find stored procedure 'dbo.PeopleMaintenance_RetrieveAllData'.




I thought I downloaded the most recent version.



Thanks,

Bill




By Trent L. Taylor - 3/1/2010

Is that sproc in the database you have? You can find it through SSMS in the programmability area.
By Bill Cunnien - 3/1/2010

No. It is not located in the list of sprocs.
By Edhy Rijo - 3/1/2010

Hi Bill,



Here is the sp:





USE [StrataFlix]

GO



/****** Object: StoredProcedure [dbo].[PeopleMaintenance_RetrieveAllData] Script Date: 03/01/2010 14:00:55 ******/

SET ANSI_NULLS ON

GO



SET QUOTED_IDENTIFIER ON

GO



CREATE PROCEDURE [dbo].[PeopleMaintenance_RetrieveAllData] @peoplePk INT,

@includePeople BIT

AS

BEGIN



-- Determine if the people result set should be included

IF @includePeople = 1

   BEGIN

      -- Retrieve the people data result set

      SELECT

         *

      FROM People

      WHERE pl_pk = @peoplePk;

   END



-- Retrieve all of the movies (filmography) for the person

SELECT

   MovieCast.*,

   Movies.mv_Title,

   Movies.mv_Year

FROM MovieCast

   LEFT JOIN Movies ON mc_mv_pk = mv_pk

WHERE mc_pl_pk = @peoplePk

ORDER BY Movies.mv_Year;



-- Retrieve the images associated with the people

SELECT

   *

FROM PeopleImages

WHERE pli_pl_pk = @peoplePk;



END

GO



EXEC sys.sp_addextendedproperty @name=N'DDT_Priority', @value=10 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'PROCEDURE',@level1name=N'PeopleMaintenance_RetrieveAllData'

GO




By Trent L. Taylor - 3/1/2010

Hmmm....Edhy is getting you going but I am concerned that you don't have the most recent. Did you download this from the My Account area?
By Bill Cunnien - 3/2/2010

Yes...I downloaded and reinstalled it yesterday. It is still not showing up.
By Trent L. Taylor - 3/2/2010

OK, I will take a look at this and see what is going on.
By Larry Caylor - 3/5/2010

I'm having the same issue and I downloaded it this morning.
By Trent L. Taylor - 3/8/2010

I will repost this database when the next update is posted. Sorry for the trouble! Crazy
By Sam Tenney - 3/25/2010

Hi Edhy,

Thanks for the stored procedure, but after successfully creating the stored procedure, I am now getting another error.  The error is:

Invalid object name 'PeopleImages'.

I am just a beginner and have no idea why this is happening.

Sam Tenney

By Sam Tenney - 3/25/2010

Trent,

I am just a beginner, so I am not sure about this report, but in the StrataFlix database I do not see a PeopleImages table relating to the PeopleImagesBO.  I think this is what is causing an "Invalid object name 'PeopleImages'" error when trying to LoadAllPeopleData.

Sam Tenney

By Edhy Rijo - 3/25/2010

Hi Sam,



I posted a download link for the version of the database I have.



http://forum.strataframe.net/FindPost26630.aspx