MSSQL table layout

This page gives you the database connection information and the database layout if you want to setup SQL reporting in a MySQL database server. SQL reporting makes it possible to keep track of all incoming and outgoing messages in the system regardless of who sent it.

Microsoft SQL Server connection string

Provider=SQLNCLI;Server=YourServer;Database=YourDatabase;MultipleActiveResultSets=True;UID=YourUsername;PWD=YourPassword;

In your database server you must have two database tables created: inbox and outbox for storing the traffic information. The table layout for the inbox and outbox database tables are:

Microsoft SQL Server create table layout

CREATE TABLE  outbox (
id int IDENTITY(1,1),
username varchar(30),
msgtype varchar(160),
msgid varchar(60),
callbackid varchar(255),
sender varchar(255),
receiver varchar(255),
msgsubject varchar(1024),
msgdata varchar(1024),
acceptedfordeliverytime datetime,
deliveredtonetworktime datetime,
deliveredtohandsettime datetime,
operator varchar(30),
route varchar(30),
status varchar(130),
errormessage varchar(1024),
cost varchar(10)
);


CREATE TABLE  inbox (
id int IDENTITY(1,1),
username varchar(30),
msgtype varchar(160),
msgid varchar(60),
sender varchar(255),
receiver varchar(255),
msgsubject varchar(1024),
msgdata varchar(1024),
senttime datetime,
receivedtime datetime,
operator varchar(30)
);

The SMS gateway will use the SQL Commands configured on the server preferences form to update these tables.

More information