My favorite sql scripts

Post on 11-Apr-2017

36 views 0 download

Transcript of My favorite sql scripts

My favorite SQL automations

Brian AbelingWest Des Moines

abelingb@wdmcs.org

http://bit.ly/2oFyNr6

@wdmTECH

most important feature is…

TaskSchedulerSystem Administration > Preferences > Task Scheduler

Task Scheduler

Will I give you ALL of the scripts?

No

Why not?•They use custom fields, views and tables

•Can really mess up your system

Clean up inbox

Auto delete all messages 5 days old in inbox.

1

Clean up inbox1

Turn Class Rank OFFEnsure certain fields are off

2

Turn Class Rank OFF2

Create new accounts

Automatically creates accounts for any new students and sets user id / password.

3

Create new accounts3

Password Requirements4

Delete SSN info

Auto delete all SSN info each night

5

Set guardian rights

If guardian, then mark portal & messenger

6

Set guardian rightsIf guardian, then mark portal & messenger

6

Set teacher messengerAuto set teacher messenger box.

7

Set teacher messengerAuto set teacher messenger box.

7

Set teacher messengerAuto mark teacher messenger box.7

504 Flag8Montoya, Inigo

At Risk Flags9Montoya, Inigo

You killed my father, prepare to die

Gifted/Talented FlagsMontoya, Inigo

10

Gifted/Talented Flags10

IEP FlagsMontoya, Inigo

11

Update team name

Auto update team name based on homeroom

12

Update team name13

Update AP Courses

Auto update all courses that start with “AP_”

14

Update AP Courses

Auto update all courses that start with “AP_”

14

Update Custom Field

Update Grad Yr / Destiny Homeroom

15

Flag PLP with docs

Auto update PLP flag when doc is stored in PLP area.

16

Flag PLP with docs16Montoya, Inigo

Non English Flag

Create phone icon with family language in user notice.

17

Non English Flag17Montoya, Inigo

Non English Flag17

Montoya, Inigo

Rollover displays the language

No Email Flag

Flag students which DO NOT have any guardians with email .

18

No Email Flag18

Look for guardians first, then check to see if they have email address.

No Email Flag18Montoya, Inigo

Display flag on student to denote no email in family

No Email Flag18

Reports to help office staff identify who to call to verify if no email

No Email Flag18

Create an ad-hoc, then create mailing labels for only those without email.

Foster Care

Auto mark foster care children for FRL.

19

Staff Accounts

Auto mark all staff for campus application and group memberships

20

Staff Accounts

Active staff, mark Campus Application.

20

Staff Accounts

Active staff, add to ALL group.

21

Staff Accounts

AssignCalendarGroups

22

Staff AccountsIf employment ended>remove @wdmcs.org email address >remove from calendars>change homepage

22

Student Accounts

Fill primary email address Force password reset if

common password used Fill graduation year

23

Fees24

Look at multiple factors for marking Fees tab.

Add comments to Fees Tab for those handling fees.

Fees24 Total past due fees, store

in separate field Use stored field to send

out noticed via messenger

Do Not Release Flag

Custom Do Not Release tab

25

DNR info25Montoya, Inigo

Auto fill Title status

Help with state reporting by auto populating fields such as Title I Math and Reading.

26

Auto fill Title I status26

Fill Title fields based on enrollment information.

Activities/Athletics27GPA of students in Athletics?

1 sport vs 2 sports vs 3?

Activities/Athletics27All Athletics = ATHAll Activities = ACT

Activities/Athletics27

Activities/Athletics27Script that counts and stores number of ATH enrollments

Activities/Athletics27Creates flag w number of courses

Athletics Eligibility Transfer28Automate the date of athletic eligibility for transfers.

Semester Test Opt Out29Automate process of determining who can opt out of semester tests.

Daily Runvs

Run Once

Honor Roll Course

Auto enroll in course based on criteria

31

Honor Roll Course31

Auto enroll students who meet criteria into course

Honor Roll Course31

Once rostered, we can use…•Messenger to contact them•Mailing labels to mail them•Add to the transcript

Courses for awards

Auto enroll students into courses that related to academic awards.

32

Copy lockers forward

Use a script to copy locker info forward for those who need the same locker.

33

Academic Ineligible

Use a script to auto fill academic ineligibility.

34

Academic Ineligible

Use a script to auto fill academic ineligibility based on grades.

34