MIS Systems Thread, Accessing the SIMS database and querying it to retrieve information in Technical; Hi all,
Looking to develop a system (using PHP, which I'm confident with) which queries the SIMS database to retrieve ...
-
6th October 2011, 12:31 PM #1
- Rep Power
- 0
Accessing the SIMS database and querying it to retrieve information
Hi all,
Looking to develop a system (using PHP, which I'm confident with) which queries the SIMS database to retrieve attendance information.
Does anyone have any suggestions as to where I can start? A tutorial, or the like? Or is it simply a case of finding the DB that SIMS is running on, getting a username&password, and querying it as you would with any other DB?
Cheers,
Duncan
-
-
IDG Tech News
-
6th October 2011, 12:40 PM #2 You will need to use command reporter.
generate an xml file that has the data you want to query attendance on.
Code:
commandreporter.exe /user:USERNAME /password:PASSWORD /report:"REPORT NAME" /PARAMFILE:"XML FILE WITH DATE" /output:"XML OUT"
You can then use php to import it to mysql.
-
2 Thanks to chris_uk:
dunc (7th October 2011), matt40k (6th October 2011)
-
6th October 2011, 12:48 PM #3 Yer, going straight into the database would equal death in my book. Attendance data isn't the sort of stuff you want in real-time (assuming we're talking parents) so @chris_uk is right on the money.
-
-
6th October 2011, 12:53 PM #4 It is doable - our old Moodle integration system did this. The problem comes if Capita unexpectedly change the database. You would be better off using commandreporter, or a SIF agent ( see SchoolsICT - enabling 21st century learning if you want to report data to parents), groupcall to do this. Also capita have made a complete mess of the database so it would be an uphill struggle.
-
-
6th October 2011, 01:28 PM #5 If you create the correct reports it's so easy to pull data out overnight. We have student timetables, attendance, contact details. It all updates nightly into MySQL for some web apps that we have in school. Pulling the data out as XML makes it even easier over pulling it out as a CSV. If you contact your support provider for SIMS you can get an additional help file that includes all of the commands for command reporter.
-
-
6th October 2011, 02:17 PM #6 If the command reporter doesn't give exactly what you need, you can combine views. PM sent.
-
Thanks to jinnantonnixx from:
-
6th October 2011, 03:34 PM #7 
Originally Posted by
jinnantonnixx
If the command reporter doesn't give exactly what you need, you can combine views. PM sent.
PM sent include details about creating a limited user account for it to use?
-
-
7th October 2011, 08:36 AM #8
- Rep Power
- 0
Thanks for the help gents. E-mail system was down all day yesterday so I didn't realise I had so many replies 
I'll look into the PM you sent jinn, and the solution you've suggested chris - many thanks.
-
-
7th October 2011, 09:16 AM #9
- Rep Power
- 0

Originally Posted by
chris_uk
You will need to use command reporter.
generate an xml file that has the data you want to query attendance on.
Code:
commandreporter.exe /user:USERNAME /password:PASSWORD /report:"REPORT NAME" /PARAMFILE:"XML FILE WITH DATE" /output:"XML OUT"
You can then use php to import it to mysql.
Hi again chris,
I've set up my attendance report; found CommandReporter.exe; run the line you gave me and it works insofar as the XML is displayed in my CMD window, but it doesn't generate an XML file.
The exact line I was using:
Code:
C:\Program Files\SIMS\SIMS .net>CommandReporter.exe /user:Duncan.Wraight /passwo
rd:password /report:"100% Attendance" /output: "g:\test.xml"
Last edited by dunc; 7th October 2011 at 09:25 AM.
-
-
7th October 2011, 09:54 AM #10 The exact line I was using:
Code:
C:\Program Files\SIMS\SIMS .net>CommandReporter.exe /user:Duncan.Wraight /passwo
rd:password /report:"100% Attendance" /output: "g:\test.xml"
You got some extra white space between /output: and the file name. Use
Code:
C:\Program Files\SIMS\SIMS .net>CommandReporter.exe /user:Duncan.Wraight /passwo
rd:password /report:"100% Attendance" /output:"g:\test.xml"
Last edited by rpwillis; 7th October 2011 at 09:54 AM.
Reason: Get rid of quote markup
-
-
7th October 2011, 09:55 AM #11
- Rep Power
- 0
Wow, what a noob
Thanks very much Richard!
-
-
8th October 2011, 11:22 AM #12 
Originally Posted by
chris_uk
... If you contact your support provider for SIMS you can get an additional help file that includes all of the commands for command reporter.
Does it contain any more than you can get from running it with the "/?" parameter?
-
-
10th October 2011, 09:39 AM #13 
Originally Posted by
vikpaw
Does it contain any more than you can get from running it with the "/?" parameter?
Maybe
-
-
10th October 2011, 09:44 AM #14 
Originally Posted by
matt40k
Maybe

Take that as a yes then? I've tried getting this from my local support but they have no clue what I'm talking about, very frustrating.
-
-
10th October 2011, 09:54 AM #15 To be fair to them, it's one of those areas not many people use and unless you've used it, you won't know about it.
-
SHARE: 
Similar Threads
-
By RabbieBurns in forum Scripts
Replies: 22
Last Post: 2nd May 2013, 11:08 AM
-
By ful56_uk in forum MIS Systems
Replies: 7
Last Post: 28th April 2011, 05:16 PM
-
By Stuart_C in forum Scripts
Replies: 6
Last Post: 14th May 2010, 06:04 PM
-
By dgrams in forum How do you do....it?
Replies: 16
Last Post: 26th February 2010, 05:15 PM
-
By laputa01 in forum How do you do....it?
Replies: 2
Last Post: 1st May 2009, 10:56 AM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules