Click here to Skip to main content
15,889,804 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi!I am creating a trigger to allow me to send a request to the database and reply,then I am getting the following error<<The module 'autoreply' depends on the missing object 'dbo.getresultsdata'. The module will still be created; however, it cannot run successfully until the object exists>>.

The trigger is :

SQL
CREATE TRIGGER autoreply on dbo.ozekimessagein
FOR INSERT AS
DECLARE @tel varchar(50),@msg varchar(200),@par1 varchar(50),@par2 varchar(50),@par3 varchar(50),@par4 varchar(50)
SELECT TOP 1@tel=sender,@msg=msg FROM ozekimessagein ORDER BY ID DESC
SELECT @par1=s FROM NewSplit('*',@msg) WHERE pn=1
SELECT @par2=S FROM	NewSplit('*',@msg) WHERE pn=2
SELECT @par3=s FROM NewSplit('#',@msg)	WHERE pn=3
BEGIN
execute dbo.getresultsdata @par1,@par2,@par3,@tel
end;
Posted
Updated 4-Nov-11 8:36am
v2

1 solution

You obviously need the stored procedure "dbo.getresultsdata". Check the following:
Check if the stored procedure exists
Check the case: For example, is it dbo.getresultsdata or dbo.getResultData?
Check if you can access it (grant[^])

Good luck!
 
Share this answer
 
Comments
El Dev 4-Nov-11 14:33pm    
Please can you help me by telling what I need to send an sms to the database using a mobile device through ozeki.
E.F. Nijboer 6-Nov-11 8:14am    
That's another question and would be best to post a new question about it.
Sander Rossel 4-Nov-11 14:37pm    
My 5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900