Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 18th, 2003, 01:14 AM
Registered User
 
Join Date: Sep 2003
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to jblp Send a message via AIM to jblp
Default Could not find stored procedure 'sp_Polls_GetCurre

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(Com mandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream)


any ideas?
thanks in advance.
~J
  #2 (permalink)  
Old September 18th, 2003, 06:10 AM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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;
        }



Similar Threads
Thread Thread Starter Forum Replies Last Post
Stored Procedure Help. midway11 SQL Language 3 November 20th, 2006 06:36 AM
Can't find a Procedure? ChengWei BOOK: ASP.NET Website Programming Problem-Design-Solution 8 October 31st, 2006 10:31 PM
Stored Procedure Help BukovanJ SQL Language 2 October 10th, 2006 08:02 AM
Could Not find stored Procedure kavyach BOOK: ASP.NET Website Programming Problem-Design-Solution 1 June 10th, 2005 06:53 AM
Could not find stored procedure ianmc BOOK: ASP.NET Website Programming Problem-Design-Solution 16 August 20th, 2004 03:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.