Try this syntax
select emp_id, 'Messages today = ' + convert(varchar (10),count(1)) from table group by empid
Prasad
User Profile
Collapse
-
Hi, It would be easy to help you if you can put your question in complete as i feel your question is incomplete. - PrasadLeave a comment:
-
Use the following syntax to send email
SendEMail 'softdev@knoahi ndia.com','pras ad@knoahindia.c om', 'Sending email through Stored Procedure', 'Body : Giving TO, FROM, SUBJECT, BODY, SMTP - Address - 192.168.0.5, An Email can be sent through stored procedure... and this is SAMPLE', '192.168.0.5'
Here is the storedprocedure
Create Procedure dbo.SendEmail
@To VarChar(500), @From VarChar(100), @Subject VarChar(200),...Leave a comment:
No activity results to display
Show More
Leave a comment: