This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alter service master key force regenerate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT DISTINCT B.TREE_NODE, Z.RECDESCR | |
FROM PSTREEDEFN A, | |
PSTREENODE B, | |
PS_SCRTY_ACC_GRP C, | |
PSTREENODE E, | |
PSROLECLASS X, | |
PSROLEUSER Y, | |
PSRECDEFN Z | |
WHERE A.SETID = ' ' | |
AND A.TREE_STRCT_ID = 'ACCESS_GROUP' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--get top 50 slow sql statement | |
select top 50 * from | |
( | |
SELECT SUBSTRING(st.text, (qs.statement_start_offset/2)+1, | |
((CASE qs.statement_end_offset | |
WHEN -1 THEN DATALENGTH(st.text) | |
ELSE qs.statement_end_offset | |
END - qs.statement_start_offset)/2) + 1) AS StatementText, | |
last_execution_time as LastExecuted, | |
last_elapsed_time/1000000.0 as ElapsedTimeInSeconds, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## backup nonsystem apk | |
adb backup -apk -shared -nosystem -all -f backup_apk.ab | |
### backup system and nonsystem apk | |
adb backup -apk -noshared -system -all -f backup_apk.ab | |
## backup individual apk | |
adb backup -apk com.example.testing -f testing.ab | |
## restore all |
NewerOlder