my favorite sql scripts
TRANSCRIPT
![Page 1: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/1.jpg)
My favorite SQL automations
Brian AbelingWest Des Moines
http://bit.ly/2oFyNr6
@wdmTECH
![Page 2: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/2.jpg)
most important feature is…
TaskSchedulerSystem Administration > Preferences > Task Scheduler
![Page 3: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/3.jpg)
Task Scheduler
![Page 4: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/4.jpg)
Will I give you ALL of the scripts?
No
![Page 5: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/5.jpg)
Why not?•They use custom fields, views and tables
•Can really mess up your system
![Page 6: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/6.jpg)
Clean up inbox
Auto delete all messages 5 days old in inbox.
1
![Page 7: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/7.jpg)
Clean up inbox1
![Page 8: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/8.jpg)
Turn Class Rank OFFEnsure certain fields are off
2
![Page 9: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/9.jpg)
Turn Class Rank OFF2
![Page 10: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/10.jpg)
Create new accounts
Automatically creates accounts for any new students and sets user id / password.
3
![Page 11: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/11.jpg)
Create new accounts3
![Page 12: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/12.jpg)
Password Requirements4
![Page 13: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/13.jpg)
Delete SSN info
Auto delete all SSN info each night
5
![Page 14: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/14.jpg)
Set guardian rights
If guardian, then mark portal & messenger
6
![Page 15: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/15.jpg)
Set guardian rightsIf guardian, then mark portal & messenger
6
![Page 16: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/16.jpg)
Set teacher messengerAuto set teacher messenger box.
7
![Page 17: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/17.jpg)
Set teacher messengerAuto set teacher messenger box.
7
![Page 18: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/18.jpg)
Set teacher messengerAuto mark teacher messenger box.7
![Page 19: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/19.jpg)
504 Flag8Montoya, Inigo
![Page 20: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/20.jpg)
At Risk Flags9Montoya, Inigo
You killed my father, prepare to die
![Page 21: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/21.jpg)
Gifted/Talented FlagsMontoya, Inigo
10
![Page 22: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/22.jpg)
Gifted/Talented Flags10
![Page 23: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/23.jpg)
IEP FlagsMontoya, Inigo
11
![Page 24: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/24.jpg)
Update team name
Auto update team name based on homeroom
12
![Page 25: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/25.jpg)
Update team name13
![Page 26: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/26.jpg)
Update AP Courses
Auto update all courses that start with “AP_”
14
![Page 27: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/27.jpg)
Update AP Courses
Auto update all courses that start with “AP_”
14
![Page 28: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/28.jpg)
Update Custom Field
Update Grad Yr / Destiny Homeroom
15
![Page 29: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/29.jpg)
Flag PLP with docs
Auto update PLP flag when doc is stored in PLP area.
16
![Page 30: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/30.jpg)
Flag PLP with docs16Montoya, Inigo
![Page 31: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/31.jpg)
Non English Flag
Create phone icon with family language in user notice.
17
![Page 32: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/32.jpg)
Non English Flag17Montoya, Inigo
![Page 33: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/33.jpg)
Non English Flag17
Montoya, Inigo
Rollover displays the language
![Page 34: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/34.jpg)
No Email Flag
Flag students which DO NOT have any guardians with email .
18
![Page 35: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/35.jpg)
No Email Flag18
Look for guardians first, then check to see if they have email address.
![Page 36: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/36.jpg)
No Email Flag18Montoya, Inigo
Display flag on student to denote no email in family
![Page 37: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/37.jpg)
No Email Flag18
Reports to help office staff identify who to call to verify if no email
![Page 38: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/38.jpg)
No Email Flag18
Create an ad-hoc, then create mailing labels for only those without email.
![Page 39: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/39.jpg)
Foster Care
Auto mark foster care children for FRL.
19
![Page 40: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/40.jpg)
Staff Accounts
Auto mark all staff for campus application and group memberships
20
![Page 41: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/41.jpg)
Staff Accounts
Active staff, mark Campus Application.
20
![Page 42: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/42.jpg)
Staff Accounts
Active staff, add to ALL group.
21
![Page 43: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/43.jpg)
Staff Accounts
AssignCalendarGroups
22
![Page 44: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/44.jpg)
Staff AccountsIf employment ended>remove @wdmcs.org email address >remove from calendars>change homepage
22
![Page 45: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/45.jpg)
Student Accounts
Fill primary email address Force password reset if
common password used Fill graduation year
23
![Page 46: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/46.jpg)
Fees24
Look at multiple factors for marking Fees tab.
Add comments to Fees Tab for those handling fees.
![Page 47: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/47.jpg)
Fees24 Total past due fees, store
in separate field Use stored field to send
out noticed via messenger
![Page 48: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/48.jpg)
Do Not Release Flag
Custom Do Not Release tab
25
![Page 49: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/49.jpg)
DNR info25Montoya, Inigo
![Page 50: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/50.jpg)
Auto fill Title status
Help with state reporting by auto populating fields such as Title I Math and Reading.
26
![Page 51: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/51.jpg)
Auto fill Title I status26
Fill Title fields based on enrollment information.
![Page 52: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/52.jpg)
Activities/Athletics27GPA of students in Athletics?
1 sport vs 2 sports vs 3?
![Page 53: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/53.jpg)
Activities/Athletics27All Athletics = ATHAll Activities = ACT
![Page 54: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/54.jpg)
Activities/Athletics27
![Page 55: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/55.jpg)
Activities/Athletics27Script that counts and stores number of ATH enrollments
![Page 56: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/56.jpg)
Activities/Athletics27Creates flag w number of courses
![Page 57: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/57.jpg)
Athletics Eligibility Transfer28Automate the date of athletic eligibility for transfers.
![Page 58: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/58.jpg)
Semester Test Opt Out29Automate process of determining who can opt out of semester tests.
![Page 59: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/59.jpg)
Daily Runvs
Run Once
![Page 60: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/60.jpg)
Honor Roll Course
Auto enroll in course based on criteria
31
![Page 61: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/61.jpg)
Honor Roll Course31
Auto enroll students who meet criteria into course
![Page 62: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/62.jpg)
Honor Roll Course31
Once rostered, we can use…•Messenger to contact them•Mailing labels to mail them•Add to the transcript
![Page 63: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/63.jpg)
Courses for awards
Auto enroll students into courses that related to academic awards.
32
![Page 64: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/64.jpg)
Copy lockers forward
Use a script to copy locker info forward for those who need the same locker.
33
![Page 65: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/65.jpg)
Academic Ineligible
Use a script to auto fill academic ineligibility.
34
![Page 66: My favorite sql scripts](https://reader033.vdocument.in/reader033/viewer/2022051706/58eccd461a28abca758b45a5/html5/thumbnails/66.jpg)
Academic Ineligible
Use a script to auto fill academic ineligibility based on grades.
34