Question : SQL cannot find stored procedure

Hi,

I have a stored procedure in SQL Express 2008 R2. The stored procedure accessed two databases OnTime_Customer_1 and OnTime_Master. The stored procedure is created in the OnTime_Customer_1 table.

When I try and run this query through the query editor in sql express 2008, the query runs and returns results. However, the stored procedure name is underlined in red and the alt text says "Could not find stored procedure...." - But like I said, I can execute it and it returns results.

When I try and run this sp from an ASP.net c# app, I get the "Could not find stored procedure" error. Below is my code. Does anyone know what this issue is??

===========================================
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
USE [OnTime_Customer_1]
GO

/****** Object:  StoredProcedure [dbo].[OnTime_sp_Language_List]    Script Date: 07/29/2010 13:00:07 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE PROCEDURE [dbo].[OnTime_sp_Language_List]
	@Param_Customer_ID_Ref nvarchar(50),
	@Param_Company_ID_Ref nvarchar(50)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    SELECT
		OnTime_Master.dbo.OnTime_Languages.Language_Name, OnTime_Master.dbo.OnTime_Languages.Language_Culture  
		FROM OnTime_Master.dbo.OnTime_Languages
			INNER JOIN OnTime_Active_Languages
				ON OnTime_Active_Languages.Active_Language_Ref_ID = OnTime_Languages.Language_ID
		WHERE 
			OnTime_Active_Languages.Active_Language_Customer_ID_Ref = @Param_Customer_ID_Ref
			AND
			OnTime_Active_Languages.Active_Language_Company_ID_Ref = @Param_Company_ID_Ref
			AND
			OnTime_Languages.Language_Active = 1
END


GO

Answer : SQL cannot find stored procedure

Also you said there are 2 database ?

Are you connecting the the same database that the stored procedure was created in ?
Random Solutions  
 
programming4us programming4us