Subject: Could not find stored procedure 'sp_Polls_GetCurre
Posted By: jblp Post Date: 9/18/2003 1:14:59 AM
Could not find stored procedure 'sp_Polls_GetCurrentQuestionID'.

Where should this file be?
I cant seem to find it in the project.
vb.net 2003


System.Data.SqlClient.SqlException: Could not find stored procedure 'sp_Polls_GetCurrentQuestionID'.
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream)


any ideas?
thanks in advance.
~J
Reply By: developerz Reply Date: 9/18/2003 6:10:28 AM
In the C# version it is in the Polls.Data project - in the Question.cs file found in this code:

    public int GetCurrentID()
        {        
            int numAffected;
    
            // create the parameters
            SqlParameter[] parameters = { new SqlParameter("@QuestionID", SqlDbType.Int, 4) };    
            parameters[0].Direction = ParameterDirection.Output;

            // run the procedure
            RunProcedure("sp_Polls_GetCurrentQuestionID", parameters, out numAffected);

            return (int)parameters[0].Value;
        }


Go to topic 4140

Return to index page 1043
Return to index page 1042
Return to index page 1041
Return to index page 1040
Return to index page 1039
Return to index page 1038
Return to index page 1037
Return to index page 1036
Return to index page 1035
Return to index page 1034