Search the manual:

Overview Quick start Download Manual How to buy FAQ Contact Us
OZEKI NG SMS Gateway - Product Guide

SQL Server 2005 remote connection Contents | SearchInternational characters

Home > Product Manual > Installation Guide > Users and applications > Database user > MSSQL > MSSQL Server 2008 Connection

SMS Gateway SMS Gateway Home

  Product Manual
  Introduction
  SMS technology
  Installation Guide
  Prerequisites
  Download Information
  Installation Steps
  Service Provider Connections
  Users and applications
  Standard user
  SMPP user
  Database user
  MSSQL
  SQL Express
  Connection problem
  Create user
  SQL Server 2005 remote connection
  MSSQL Server 2008 Connection
  International characters
  MySQL
  Oracle
  Sybase SQL Anywhere
  PostgreSQL
  Pervasive SQL
  Date Format Strings
  Scheduled SMS
  SQL templates
  Informix
  Access
  Video
  Connection string builder
  Keywords
  Batch processing
  SQL statements
  Polling technology
  Dynamic Keywords
  Dynamic SMPP parameters
  AutoreplyDatabase user
  Autoreply user
  AutoReplyEasy user
  File user
  E-mail user
  HTTP Client user
  Colour SMS user
  Appstarter user
  SMS Voting
  Outlook Mobile Service
  FTP user
  PDF user
  WCF Client User
  Forwarder user
  Linux
  User Guide
  Developers Guide
  Examples and Solutions
  Appendix
  FAQ
  Feature list
  Commercial Information
  Search
 

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

E-mail: info@ozekisms.com

If you have a technical question, please submit a support request on-line.


Callcenter developers
If you are working on telephone solutions, please check out the Ozeki VoIP SIP SDK.
It can be used to create:

Webphone solutions:
- Adobe Flash video phone
- Silverlight video phone
- Web to web calls
- Web to VoIP calls

Custom SIP clients:
- Silverlight SIP VoIP client
- Flash SIP VoIP client
- C# .net SIP VoIP client
- ASP .net SIP VoIP client
- Web based SIP VoIP client

Custom VoIP solutions:
- VoIP SIP softphones
- VoIP call center clients
- VoIP IVR systems
- VoIP predictive dialer systems
- VoIP auto dialer systems
- VoIP call assistant
- VoIP call recording systems
- VoIP intercom solutions

Send SMS messages from Microsoft SQL Server


In this article you will find detailed information on how to send SMS text messages from MSSQL Server 2008 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 2008 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 2008

Start "SQL Server Management Studio" at Start / All programs / Microsoft SQL Server 2008 / 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=SQLOLEDB.1;Data Source=YourComputerName;Persist Security Info=False;Integrated Security=SSPI;User ID=YourUserName;Password=YourPassword;Initial Catalog=CreatedDatabaseName

Figure 9 is an example for a customized connection string.


Figure 9 - Connection string

Data Source=OZSERVER ### It is the name of the computer on which MSSQL has been installed
Integrated Security=SSPI ### It uses Windows authentication
User ID=Administrator ### It is the username
Password=qwe123RTY ### It is the password
Initial Catalog=ozeki ### It is the name of the database that contains "ozekimessagein" and "ozekimessageout" database tables

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.

Related pages:

How to install and configure a database user in Ozeki NG SMS Gateway

Send SMS messages using MSSQL Express

If you wish to implement this solution into your IT system, please go to the download page to download Ozeki NG SMS Gateway

Dig deeper!
People who read this also read...


Database user
MSSQL
Service provider connections
Database connection strings
Database user
FAQ



Next page: International characters

Copyright © 2000 - 2013 Ozeki Informatics Ltd.
All rights reserved

Software PBX for Windows | VoIP SDK   |   Legal information   |   Privacy policy   |   Terms of use
Please, address your inquiries to info@ozekisms.com