Solved

Shoretel SQL query in Excel

Posted on 2013-11-06
10
1,940 Views
Last Modified: 2013-11-06
ALL,

I need to connect to my shoretel database to extract data that is not in the canned reports namely the call notes field.  I'm a complete novice at SQL and need instructions on connecting to the SQL database through Excel so I can dump and sort the data.

Shoretel version 12.2
Communicator version 17+
Excel 2010

Thank you
0
Comment
Question by:1212pro
  • 6
  • 3
10 Comments
 
LVL 22

Expert Comment

by:plusone3055
ID: 39627231
0
 
LVL 22

Accepted Solution

by:
plusone3055 earned 400 total points
ID: 39627237
opps Shortel is a mySQL database not SQL server
use this one :)

http://office.microsoft.com/en-us/excel-help/connect-to-a-mysql-database-HA104019820.aspx
0
 
LVL 3

Assisted Solution

by:mikeyd234
mikeyd234 earned 100 total points
ID: 39627240
You will probably need a mySql connector for excel + addin, have a look at these two articles, first to setup the connector and connect to the database, second how to query. You will also need to know the database credentials & db servername

1)  http://office.microsoft.com/en-gb/excel-help/connect-to-a-mysql-database-HA104019820.aspx

2)  http://office.microsoft.com/en-gb/excel-help/import-data-from-database-using-native-database-query-HA104123758.aspx?CTT=5&origin=HA104019820

Thanks
0
 
LVL 3

Expert Comment

by:mikeyd234
ID: 39627245
Damn, beat me to it plusone3055 :)
0
 
LVL 22

Expert Comment

by:plusone3055
ID: 39627253
sowie I need the points.. been a slow start this month ;)
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 3

Expert Comment

by:mikeyd234
ID: 39627256
Pfft points, who needs them :D

I vote all points to +1  :)
0
 
LVL 22

Expert Comment

by:plusone3055
ID: 39627267
<-- wife, daughter, two puppies, cant afford the monthly fee hence why i need the points  lol
0
 

Author Comment

by:1212pro
ID: 39627632
Hello everyone,

Thank you for the quick response.  I was able to connect to the database with your help and wanted to add some additional info that will help other people with this issue.

SERVER=<The ShoreTel Director server IP address>
 DATABASE=shorewarecdr
 USER=st_cdrreport
 PASSWORD=passwordcdrreport
 PORT=4309  (Omit this to use default port if your ShoreTel version is prior to 10.2)
 (If using the archive DB, substitute server and database of the archive) - See more at: http://blog.shoretel.com/2012/12/shoretel-professional-services-custom-reports/#sthash.wZs1X8LW.dpuf

Now that I'm connected in the MySQL browser how would I make a report or query ? I see the field I need information from  SELECT c.`CallNote` FROM shorewarecdr.`call` c;  Do I need to pick different fields like start and end times?  Do I need to use Keys to link tables as in Crystal Reports?

Thank you
0
 
LVL 22

Expert Comment

by:plusone3055
ID: 39627674
It all depends on what information you need.. We will be glad to help with that. please provide an example sheet and the data that you would like to get :)


also it is customary to award points for the original question asked,  then ask another question.  that way those that answered the first question are not denied points becuase someone answers something additional you asked but not the original thread that started the question :)
0
 
LVL 22

Expert Comment

by:plusone3055
ID: 39627761
if you can give us some sample data and what data/form your looking for we can get to work on that.. start another question and we can handle that for you :)
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now