Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2005-04-05 : 08:14:21
|
| Abi writes "Hi,When I try to execute the following procedure CREATE PROCEDURE dbo.mail AS BEGIN SET NOCOUNT ON -- do some other actions DECLARE @body VARCHAR(1024) SET @body = 'hi my mail '+ CONVERT(VARCHAR, GETDATE()) EXEC master..xp_sendmail @user='abirami' @recipients='abirami@infosys.com', @message = 'heloo', @subject = 'hello' END It throws an error sayingProcedure expects parameter @user, which was not supplied.Please let me what has to be done.Regards,Abi." |
|
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2005-04-05 : 08:15:30
|
| It looks like you're missing a comma after the @user parameter/value pair:CREATE PROCEDURE dbo.mail AS BEGIN SET NOCOUNT ON -- do some other actions DECLARE @body VARCHAR(1024) SET @body = 'hi my mail '+ CONVERT(VARCHAR, GETDATE()) EXEC master..xp_sendmail@user='abirami',@recipients='abirami@infosys.com', @message = 'heloo', @subject = 'hello' END |
 |
|
|
|
|
|