Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
| Search | Today's Posts | Mark Forums Read
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language 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 October 6th, 2006, 02:21 PM
Registered User
 
Join Date: May 2006
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem in stored procedure

I have the following error when I execute this stored procedure. Can someone please help?

Msg 208, Level 16, State 6, Procedure InsertIndicator, Line 28

Invalid object name 'dbo.InsertIndicator'.





set ANSI_NULLS ON

set QUOTED_IDENTIFIER ON

GO

ALTER PROCEDURE [dbo].[InsertIndicator]

(

@Module nvarchar(MAX),

@ModuleID int,

@Indicator nvarchar(Max),

@ReturnValue int Output

)

AS

Select Module

FROM Modules

Where Module=@Module

IF @@ROWCOUNT >= 1

Begin

Select Indicator

FROM Indicators

Where Indicator=@Indicator

IF @@ROWCOUNT = 0

Begin

INSERT INTO [dbo].[Indicators] VALUES

(@ModuleID, @Indicator);

SELECT @ReturnValue=0

return

End

ELSE

SELECT @ReturnValue = -1

END

ELSE

SELECT @ReturnValue = -1
  #2 (permalink)  
Old October 6th, 2006, 02:29 PM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there..

what's the line 28...

can you point us at it???

HTH

Gonzalo


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with stored procedure analuz ADO.NET 1 July 18th, 2007 08:33 AM
Stored procedure problem akumarp2p Reporting Services 1 May 29th, 2007 01:25 AM
Stored Procedure Problem kwilliams SQL Server 2000 7 June 23rd, 2006 03:03 PM
Stored procedure problem dkspivey SQL Language 2 February 6th, 2006 01:44 PM
Stored Procedure Problem brettdavis4 ASP.NET 1.0 and 1.1 Basics 7 November 3rd, 2003 09:46 PM





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