My favorite sql scripts

66
My favorite SQL automations Brian Abeling West Des Moines [email protected] http://bit.ly/ 2oFyNr6 @wdmTECH

Transcript of My favorite sql scripts

Page 1: My favorite sql scripts

My favorite SQL automations

Brian AbelingWest Des Moines

[email protected]

http://bit.ly/2oFyNr6

@wdmTECH

Page 2: My favorite sql scripts

most important feature is…

TaskSchedulerSystem Administration > Preferences > Task Scheduler

Page 3: My favorite sql scripts

Task Scheduler

Page 4: My favorite sql scripts

Will I give you ALL of the scripts?

No

Page 5: My favorite sql scripts

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

•Can really mess up your system

Page 6: My favorite sql scripts

Clean up inbox

Auto delete all messages 5 days old in inbox.

1

Page 7: My favorite sql scripts

Clean up inbox1

Page 8: My favorite sql scripts

Turn Class Rank OFFEnsure certain fields are off

2

Page 9: My favorite sql scripts

Turn Class Rank OFF2

Page 10: My favorite sql scripts

Create new accounts

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

3

Page 11: My favorite sql scripts

Create new accounts3

Page 12: My favorite sql scripts

Password Requirements4

Page 13: My favorite sql scripts

Delete SSN info

Auto delete all SSN info each night

5

Page 14: My favorite sql scripts

Set guardian rights

If guardian, then mark portal & messenger

6

Page 15: My favorite sql scripts

Set guardian rightsIf guardian, then mark portal & messenger

6

Page 16: My favorite sql scripts

Set teacher messengerAuto set teacher messenger box.

7

Page 17: My favorite sql scripts

Set teacher messengerAuto set teacher messenger box.

7

Page 18: My favorite sql scripts

Set teacher messengerAuto mark teacher messenger box.7

Page 19: My favorite sql scripts

504 Flag8Montoya, Inigo

Page 20: My favorite sql scripts

At Risk Flags9Montoya, Inigo

You killed my father, prepare to die

Page 21: My favorite sql scripts

Gifted/Talented FlagsMontoya, Inigo

10

Page 22: My favorite sql scripts

Gifted/Talented Flags10

Page 23: My favorite sql scripts

IEP FlagsMontoya, Inigo

11

Page 24: My favorite sql scripts

Update team name

Auto update team name based on homeroom

12

Page 25: My favorite sql scripts

Update team name13

Page 26: My favorite sql scripts

Update AP Courses

Auto update all courses that start with “AP_”

14

Page 27: My favorite sql scripts

Update AP Courses

Auto update all courses that start with “AP_”

14

Page 28: My favorite sql scripts

Update Custom Field

Update Grad Yr / Destiny Homeroom

15

Page 29: My favorite sql scripts

Flag PLP with docs

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

16

Page 30: My favorite sql scripts

Flag PLP with docs16Montoya, Inigo

Page 31: My favorite sql scripts

Non English Flag

Create phone icon with family language in user notice.

17

Page 32: My favorite sql scripts

Non English Flag17Montoya, Inigo

Page 33: My favorite sql scripts

Non English Flag17

Montoya, Inigo

Rollover displays the language

Page 34: My favorite sql scripts

No Email Flag

Flag students which DO NOT have any guardians with email .

18

Page 35: My favorite sql scripts

No Email Flag18

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

Page 36: My favorite sql scripts

No Email Flag18Montoya, Inigo

Display flag on student to denote no email in family

Page 37: My favorite sql scripts

No Email Flag18

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

Page 38: My favorite sql scripts

No Email Flag18

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

Page 39: My favorite sql scripts

Foster Care

Auto mark foster care children for FRL.

19

Page 40: My favorite sql scripts

Staff Accounts

Auto mark all staff for campus application and group memberships

20

Page 41: My favorite sql scripts

Staff Accounts

Active staff, mark Campus Application.

20

Page 42: My favorite sql scripts

Staff Accounts

Active staff, add to ALL group.

21

Page 43: My favorite sql scripts

Staff Accounts

AssignCalendarGroups

22

Page 44: My favorite sql scripts

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

22

Page 45: My favorite sql scripts

Student Accounts

Fill primary email address Force password reset if

common password used Fill graduation year

23

Page 46: My favorite sql scripts

Fees24

Look at multiple factors for marking Fees tab.

Add comments to Fees Tab for those handling fees.

Page 47: My favorite sql scripts

Fees24 Total past due fees, store

in separate field Use stored field to send

out noticed via messenger

Page 48: My favorite sql scripts

Do Not Release Flag

Custom Do Not Release tab

25

Page 49: My favorite sql scripts

DNR info25Montoya, Inigo

Page 50: My favorite sql scripts

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

Auto fill Title I status26

Fill Title fields based on enrollment information.

Page 52: My favorite sql scripts

Activities/Athletics27GPA of students in Athletics?

1 sport vs 2 sports vs 3?

Page 53: My favorite sql scripts

Activities/Athletics27All Athletics = ATHAll Activities = ACT

Page 54: My favorite sql scripts

Activities/Athletics27

Page 55: My favorite sql scripts

Activities/Athletics27Script that counts and stores number of ATH enrollments

Page 56: My favorite sql scripts

Activities/Athletics27Creates flag w number of courses

Page 57: My favorite sql scripts

Athletics Eligibility Transfer28Automate the date of athletic eligibility for transfers.

Page 58: My favorite sql scripts

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

Page 59: My favorite sql scripts

Daily Runvs

Run Once

Page 60: My favorite sql scripts

Honor Roll Course

Auto enroll in course based on criteria

31

Page 61: My favorite sql scripts

Honor Roll Course31

Auto enroll students who meet criteria into course

Page 62: My favorite sql scripts

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

Courses for awards

Auto enroll students into courses that related to academic awards.

32

Page 64: My favorite sql scripts

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

Academic Ineligible

Use a script to auto fill academic ineligibility.

34

Page 66: My favorite sql scripts

Academic Ineligible

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

34