SEND SMS ALERT FROM YOUR SYSTEM: Twitter Joomla HP Openview WhatsUp Gold Sharepoint Notes
    
Home Solutions Applications Industries Products About Us
    
OzekiNG-SMS-Gateway.zip (5 MB)
for Windows XP,2000,2003,2008,Vista,Windows 7,8,Windows 10
free 20 day trial version
Menu
  Welcome page
  Solutions
  Applications
  General information
  Network management
  CRM
  Workflow management
  Helpdesk
  SQL database
  Interbase
  Visual FoxPro
  MSSQL Server 2012/2014 Connection
  MSSQL Server 2016
  E-mail
  Website
  Two-factor authentication
  SMS Examples
  Products
  Contact
  Sitemap

Contact Us!
If you wish to get further information, do not hesitate to contact us!

E-mail: info@sms-integration.com

Useful information
How to send SMS with a GSM modem attached to your PC?


This solution is best if you are planning to send or receive up to 4000 SMS per day. Read more:
  • Prerequisites
  • Setup instructions
  • Video tutorial


    How to send SMS through the Internet?


    If you wish to send more then 4000 SMS per day, it is a good idea to use an Internet SMS service provider. Read more:
  • Prerequisites
  • Setup instructions
  • Automate phone calls!

    Ozeki Phone System XE - VoIP PBX Software is an excellent tool for making automated phone calls.

    Send and receive SMS in MSSQL Server 2012/2014

    In this article you will find detailed information on how to send SMS text messages from MSSQL Server 2012/2014 with the help of Ozeki NG SMS Gateway. Ozeki NG SMS Gateway needs to be downloaded and installed on your computer to provide SMS functionality to your database.

    If you have installed Ozeki NG SMS Gateway software on your computer then you can start to setup your SMS system. To send SMS messages from MSSQL Server 2012/2014 you need to do the follows: First create a database and then create two database tables in this created database for the outgoing and incoming messages: "ozekimessageout" and "ozekimessagein" in MS SQL. Then you need to configure Ozeki NG SMS Gateway to connect to the database and use these database tables for sending and receiving SMS messages. After the configuration you can start to send messages by inserting a record into "ozekimessageout" database table using an SQL INSERT. Ozeki NG SMS Gateway reads this record with the help of an SQL SELECT and it will send out your message as an SMS to mobile phones. It uses a GSM modem attached to the PC or it connects directly to the SMS center of the mobile service provider over the Internet (IP SMS).

    Create database tables in MSSQL 2012/2014

    Start "SQL Server Management Studio" at Start / All programs / Microsoft SQL Server 2012/2014 / SQL Server Management Studio. Then log into MSSQL Server with your username and password that you usually use for authentication in Windows. Now right click on "Database" menu item and "New Database" (Figure 1).


    Figure 1 - Create new database

    Provide a name for this new database (in our example it is "ozeki") and click on "OK" (Figure 2).


    Figure 2 - New database name

    You can specify international coding if you right click on the database and select "Properties". On the left side click on "Options" and set "Collation" field to your country (Figure 3).


    Figure 3 - Database properties

    Next, right click on the created database and select "New Query" (Figure 4).


    Figure 4 - New query

    Copy the database tables script from this page and click on "Execute" (Figure 5) and (Figure 6).

    Database table script:

    CREATE TABLE ozekimessagein (
     id int IDENTITY (1,1),
     sender varchar(30),
     receiver varchar(30),
     msg nvarchar(160),
     senttime varchar(100),
     receivedtime varchar(100),
     operator varchar(30),
     msgtype varchar(30),
     reference varchar(30),
    );

    CREATE TABLE ozekimessageout (
     id int IDENTITY (1,1),
     sender varchar(30),
     receiver varchar(30),
     msg nvarchar(160),
     senttime varchar(100),
     receivedtime varchar(100),
     operator varchar(100),
     msgtype varchar(30),
     reference varchar(30),
     status varchar(30),
     errormsg varchar(250)
    );

    Figure 5 - SQL database table script


    Figure 6 - Execute query

    If it is done, close "SQL Server Management Studio".

    Create a database user in Ozeki NG SMS Gateway

    To create a database user in Ozeki NG SMS Gateway, first you need to log into the gateway software. Then go to "Add new user or application". Select "Database user" and click on "Install" next to it (Figure 7).


    Figure 7 - Install database user

    Provide a name for this user (Figure 8).


    Figure 8 - Give a unique SQL user name

    Configure the database connection for this SQL user in Ozeki NG SMS Gateway

    To setup this database connection select the connection string type.
    OleDb

    Then customize the following connection string:
    Provider=SQLNCLI11;Server=ServerAddress;Database=DatabaseName;Uid=UserName;Pwd=Password;

    Figure 9 is an example for a customized connection string.


    Figure 9 - Connection string

    You can test this created connection if you click on "SQL Prompt" and you select from the dropdown menu:
    INSERT INTO ozekimessageout (receiver,msg,status) VALUES ('+36205460691','Hello World','send');
    After a short period of time, Ozeki NG SMS Gateway will notice the new row and send out your message.


    Thank you for reading this guide.

    Request more information

    If you are interested in this solution, let us know, so we can send you more relevant information and quotation with prices. Please fill in the following form:


    Your name:
    Company:
    E-mail:
    Tel:
    Country:
    Message:
     

    Home > Applications > SQL database > MSSQL Server 2012/2014 Connection
    Feel free to contact us for additional information. Tel: (36) 52 532 731, Fax: (36) 52 532 732, E-mail: info @ ozekisms.com
    Copyright © 2000 - 2017 Ozeki Informatics Ltd. - All rights reserved.