SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


HOw to send SMS Using t-sql


HOw to send SMS Using t-sql

Author
Message
SQL Dev-938873
SQL Dev-938873
Old Hand
Old Hand (344 reputation)Old Hand (344 reputation)Old Hand (344 reputation)Old Hand (344 reputation)Old Hand (344 reputation)Old Hand (344 reputation)Old Hand (344 reputation)Old Hand (344 reputation)

Group: General Forum Members
Points: 344 Visits: 425
Hi,

How to send using T-SQL ( ofcourse using GSM port integration ,but how to intigrate )

Any suggestions..

Thanks in advance,....

GaNeSH
Elliott Whitlow
Elliott Whitlow
SSC-Insane
SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)

Group: General Forum Members
Points: 23470 Visits: 5314
Are you sure you want to use a local GSM gateway? If not, there are providers like ClickATell who provide several different interfaces. I like them and have used them before. Also there is no direct way to do this from SQL. With that said you could write a SQLCLR object to send them. There is a project on CodePlex called SMS Task, it might provide some code to make a SQL CLR object. It is at:
http://smstask.codeplex.com/

If you are still intent on a GSM solution there is a company, which unfortunately I can't remember their name, that have a solution that is backed by SQL Server. But it is pricey..

CEWII
Lowell
Lowell
SSC Guru
SSC Guru (70K reputation)SSC Guru (70K reputation)SSC Guru (70K reputation)SSC Guru (70K reputation)SSC Guru (70K reputation)SSC Guru (70K reputation)SSC Guru (70K reputation)SSC Guru (70K reputation)

Group: General Forum Members
Points: 70162 Visits: 40923
there's a script in the scripts ection for sending an SMS in a trigger here:http://www.sqlservercentral.com/scripts/Miscellaneous/31899/

that uses the exisitng email-to-SMS functions that every cell carrier seems to support.

there's a lot of other examples if you search for "SMS" here on SSC.

did you mean the actual modem connection and everything, or is that sufficient? there's another thread that has the actual modem handling on codeproject.com, but I'm not sure what you need.

Lowell
--help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!
Elliott Whitlow
Elliott Whitlow
SSC-Insane
SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)

Group: General Forum Members
Points: 23470 Visits: 5314
The company that makes the SMS Gateway I was talking about is Ozeki NG.. It is at:
http://www.ozekisms.com/

CEWII
Steve Jones
Steve Jones
SSC Guru
SSC Guru (143K reputation)SSC Guru (143K reputation)SSC Guru (143K reputation)SSC Guru (143K reputation)SSC Guru (143K reputation)SSC Guru (143K reputation)SSC Guru (143K reputation)SSC Guru (143K reputation)

Group: Administrators
Points: 143732 Visits: 19424
That gateway supports email, so sp_sendmail should work.

Don't do this from a trigger. Let the trigger drop data in a table and then use a job that checks the table every minute and sends the email.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
ps.
ps.
SSCertifiable
SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)

Group: General Forum Members
Points: 7035 Visits: 3668
In my previous organization, i'd written a sms gateway in vb 6.0 that was using a third party tool (air2web) to send SMS. The gateway had schedulers running which brought relevant details from various sources(oracle, sql server, excel files) at regular intervals defined in a 'Rules' table to an smsFetch table and a timer used to run which used to read and parse data from this smsFetch table and used to send the sms. The vendor had given us a URL with which contained userid/pin, mobileno and smstext as parameters of the URL and the timer used to invoke for each row of data.... Charges were INR 0.18 per sms for national sms and Rs 3 for international sms.

There are other vendors who provide dll's which you can incorporate (if you're planning to write a short program for it).



Pradeep Singh
mnatives
mnatives
SSC Rookie
SSC Rookie (30 reputation)SSC Rookie (30 reputation)SSC Rookie (30 reputation)SSC Rookie (30 reputation)SSC Rookie (30 reputation)SSC Rookie (30 reputation)SSC Rookie (30 reputation)SSC Rookie (30 reputation)

Group: General Forum Members
Points: 30 Visits: 5
Hi
i Think
SMS gateway is highly robust, scalable with the capacity of handling a peak load of 1500 SMS per second.

Bulk SMS Gateway
Click here offers
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search