Send SMS using sql server

Who is online?  0 guests and 0 members
Home  »  Forums   »  microsoft business intelligence   »  sql server   » Send SMS using sql server

Send SMS using sql server

Topic RSS Feed

Posts under the topic: Send SMS using sql server

Posted: 8/24/2011

Jedi Youngling 67  points  Jedi Youngling
  • Joined on: 3/23/2011
  • Posts: 30

Hi,

   I want to know if we can send sms using sql server 2008 r2.Construct the message and

send it through sql database itself.If yes, how can i go about this.

Thanks


Posted: 8/24/2011

Padawan 734  points  Padawan
  • Joined on: 6/6/2011
  • Posts: 42
Answered  Answered

Yes you can! Use the send mail task and then send via email. You need cell numbers and providers for each person you want to message.

http://en.wikipedia.org/wiki/List_of_SMS_gateways Use this list and just add the phone number to the corresponding cell provider.

Please mark answered if this answers your question.


Posted: 8/24/2011

Padawan 734  points  Padawan
  • Joined on: 6/6/2011
  • Posts: 42
Answered  Answered

You would use and SSIS package.


Posted: 8/24/2011

Jedi Knight 2222  points  Jedi Knight
  • Joined on: 2/22/2010
  • Posts: 201

You can send email natively from SQL Server via Database Mail (2005+) but not SMS natively. Check this thread for more ideas: http://stackoverflow.com/questions/2047536/sending-an-sms-through-sql-server-2008

Owen's idea is also possible, Pragmatic Works has a task in Task Factory that allows you to send SMS via SSIS packages: http://pragmaticworks.com/Products/Business-Intelligence/TaskFactory/Features.aspx#TS10


Posted: 8/24/2011

Jedi Master 2806  points  Jedi Master
  • Joined on: 2/19/2010
  • Posts: 406

I have used both the msdb.dbo.sp_send_mail and SSIS Send Mail task to send a text to my phone without any special set up.  The only issue I run into is the message will be truncated when it is too long; greater than 160 characters.  I used a list like the one on the link posted above by Owen to figure out the right recipient formatting, but that was all.

 


Posted: 8/25/2011

Jedi Youngling 67  points  Jedi Youngling
  • Joined on: 3/23/2011
  • Posts: 30

Thanks. Will go through it


Posted: 11/30/2011

Jedi Youngling 2  points  Jedi Youngling
  • Joined on: 11/30/2011
  • Posts: 1

There may be an easier way for you depending on what you are looking to do using a service called Twilio.com.

Check these two links out for more information on making telephone calls and sending text messages from a single line of SQL code.

http://www.twilio.com/gallery/projects/twiSQL

http://www.austinhenderson.com/Projects/twiSQL.aspx

 


Page 1 of 1 (7 items)