Skip to content

Commit 7d7b1a5

Browse files
author
haraldpfirmann
committed
Rename Simply SQL scripts
1 parent d69b2ba commit 7d7b1a5

22 files changed

+85
-23
lines changed

DBSystems/README.md

+33-1
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@
55
+ Open SQL Connection with SimplySQL
66
+ Close connection with SimplySQL
77
+ Invoke SQL, update, scalar queries with SimplySQL
8+
+ Get SQL instance with SQLServer
9+
+ Get SQL database with SQLServer
810

911
## [Queries](./_QUERY_)
1012

1113
+ Get all connections with SimplySQL
1214
+ Get specified columns from the specified table with SimplySQL
1315
+ Get ScriptRunner-Reports from the ScriptRunner database with SimplySQL
16+
+ Get databases with SQL Server
17+
+ Get instance roles or database roles with SQL Server
18+
+ Get agent jobs or agent job schedules with SQL Server
19+
+ Get Login objects with SQL Server
1420

1521
## [Samples](./Samples)
1622

@@ -20,4 +26,30 @@
2026

2127
+ Open SQL Connection
2228
+ Get/close connections
23-
+ Invoke SQL, update, scalar queries
29+
+ Invoke SQL, update, scalar queries
30+
31+
## [SQL Server](./SQLServer)
32+
33+
+ Get, start, stop SQL instance
34+
+ Configure authentication mode of SQL instance
35+
+ Add, get, remove SQL instance role members
36+
+ Add, get, remove SQL login
37+
+ Get, set, test SQL Smart Admin object
38+
+ Get, backup, restore database
39+
+ Backup, restore Analysis Service database
40+
+ Add, get, remove SQL database role members
41+
+ Read, write table data
42+
+ Read view data
43+
+ Invoke run a script supported by the SQL Server SQLCMD utility
44+
+ Add, get, set, remove SQL credential
45+
+ Add, get, remove SQL role members
46+
+ Get backup history
47+
+ Get, set error log
48+
+ Get, agent, agent schedule
49+
+ Get, agent job, agent job step, agent job schedule, agent job history
50+
+ Add, remove firewall rule
51+
+ Add, get, remove column master key
52+
+ Add, get, remove column encryption key
53+
+ Enable, disable the Always On availability groups feature
54+
+ Encrypt, decrypt, or re-encrypt specified columns in the database
55+
+ Generate In-Memory OLTP Migration Checklist

DBSystems/Samples/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
> Note: The use of the scripts requires the PowerShell Module SimplySQL
44
5-
+ [Get-DMSSRErrorStatistic.ps1](./Get-DMSSRErrorStatistic.ps1)
5+
+ [Get-DMSSIMSRErrorStatistic.ps1](./Get-DMSSIMSRErrorStatistic.ps1)
66

77
Reports the number of successful and erroneous reports in the specified period
88

9-
+ [Get-DMSSRRuntimeReport.ps1](./Get-DMSSRRuntimeReport.ps1)
9+
+ [Get-DMSSIMSRRuntimeReport.ps1](./Get-DMSSIMSRRuntimeReport.ps1)
1010

1111
Reports the runtime of actions in the specified period
1212

13-
+ [Get-DMSSRReports.ps1](./Get-DMSSRReports.ps1)
13+
+ [Get-DMSSIMSRReports.ps1](./Get-DMSSIMSRReports.ps1)
1414

1515
Returns the ScriptRunner reports in the specified period
1616

17-
+ [Get-DMSSRUsageReport.ps1](./Get-DMSSRUsageReport.ps1)
17+
+ [Get-DMSSIMSRUsageReport.ps1](./Get-DMSSIMSRUsageReport.ps1)
1818

1919
Reports the usage of actions in the specified period

DBSystems/SimplySQL/README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,38 @@
22

33
> Note: The use of the scripts requires the PowerShell Module SimplySQL.
44
5-
+ [Close-DMSConnection.ps1](./Close-DMSConnection.ps1)
5+
+ [Close-DMSSIMConnection.ps1](./Close-DMSSIMConnection.ps1)
66

77
Closes an existing connection
88

9-
+ [Get-DMSConnections.ps1](./Get-DMSConnections.ps1)
9+
+ [Get-DMSSIMConnections.ps1](./Get-DMSSIMConnections.ps1)
1010

1111
Lists the specified or all SqlConnections
1212

13-
+ [Invoke-DMSQuery.ps1](./Invoke-DMSQuery.ps1)
13+
+ [Invoke-DMSSIMQuery.ps1](./Invoke-DMSSIMQuery.ps1)
1414

1515
Executes a query
1616

17-
+ [Invoke-DMSQueryLib.ps1](./Invoke-DMSQueryLib.ps1)
17+
+ [Invoke-DMSSIMQueryLib.ps1](./Invoke-DMSSIMQueryLib.ps1)
1818

1919
Executes a query using, library script functions
2020

21-
+ [Invoke-DMSScalarQuery.ps1](./Invoke-DMSScalarQuery.ps1)
21+
+ [Invoke-DMSSIMScalarQuery.ps1](./Invoke-DMSSIMScalarQuery.ps1)
2222

2323
Executes a Scalar query against the targeted connection
2424

25-
+ [Invoke-DMSScalarQueryLib.ps1](./Invoke-DMSScalarQueryLib.ps1)
25+
+ [Invoke-DMSSIMScalarQueryLib.ps1](./Invoke-DMSSIMScalarQueryLib.ps1)
2626

2727
Executes a Scalar query against the targeted connection, using library script functions
2828

29-
+ [Invoke-DMSUpdateQuery.ps1](./Invoke-DMSUpdateQuery.ps1)
29+
+ [Invoke-DMSSIMUpdateQuery.ps1](./Invoke-DMSSIMUpdateQuery.ps1)
3030

3131
Executes a query and returns number of record affected
3232

33-
+ [Invoke-DMSUpdateQueryLib.ps1](./Invoke-DMSUpdateQueryLib.ps1)
33+
+ [Invoke-DMSSIMUpdateQueryLib.ps1](./Invoke-DMSSIMUpdateQueryLib.ps1)
3434

3535
Executes a query and returns number of record affected, using library script functions
3636

37-
+ [Open-DMSSQLConnection.ps1](./Open-DMSSQLConnection.ps1)
37+
+ [Open-DMSSIMSQLConnection.ps1](./Open-DMSSIMSQLConnection.ps1)
3838

3939
Open a connection to a SQL Server

DBSystems/_LIB_/DMSSimplySQL.ps1

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function OpenSQlConnection(){
2020
Requires Module SimplySQL
2121
2222
.LINK
23-
https://github.com/scriptrunner/ActionPacks/blob/master/DatabaseManagementSystem/_LIB_
23+
https://github.com/scriptrunner/ActionPacks/blob/master/DBSystems/_LIB_
2424
2525
.Parameter ServerName
2626
The datasource for the connection
@@ -87,7 +87,7 @@ function CloseConnection(){
8787
Requires Module SimplySQL
8888
8989
.LINK
90-
https://github.com/scriptrunner/ActionPacks/tree/master/DatabaseSystemManagement/_LIB_
90+
https://github.com/scriptrunner/ActionPacks/blob/master/DBSystems/_LIB_
9191
9292
.Parameter ConnectionName
9393
User defined name for the connection, default is SRConnection
@@ -203,7 +203,7 @@ function InvokeScalarQuery(){
203203
Requires Module SimplySQL
204204
205205
.LINK
206-
https://github.com/scriptrunner/ActionPacks/tree/master/DatabaseSystemManagement/_LIB_
206+
https://github.com/scriptrunner/ActionPacks/blob/master/DBSystems/_LIB_
207207
208208
.Parameter ScalarQuery
209209
SQL statement to run
@@ -280,7 +280,7 @@ function InvokeUpdateQuery(){
280280
Requires Module SimplySQL
281281
282282
.LINK
283-
https://github.com/scriptrunner/ActionPacks/tree/master/DatabaseSystemManagement/_LIB_
283+
https://github.com/scriptrunner/ActionPacks/blob/master/DBSystems/_LIB_
284284
285285
.Parameter UpdateQuery
286286
SQL statement to run

DBSystems/_LIB_/README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@
66
## [DMSSimplySQL](./DMSSimplySQL.ps1)
77

88
+ Open/close Connection
9-
+ Invoke SQL, scalar, update queries
9+
+ Invoke SQL, scalar, update queries
10+
11+
12+
## [DMSSqlServer](./DMSSqlServer.ps1)
13+
14+
+ Get SQL instance
15+
+ Get SQL database

DBSystems/_QUERY_/README.md

+28-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,40 @@
11
# Queries for SimplySQL
22

33
> Note: The scripts must be stored in a folder named \_QUERY_ to use them as queries
4-
><br>The use of the scripts requires the PowerShell Module SimplySQL
4+
><br>The use of the scripts requires the PowerShell Module SimplySQL or SQLServer
55
6-
+ [QUY_Get-DMSConnections.ps1](./QUY_Get-DMSConnections.ps1)
6+
+ [QUY_Get-DMSSIMConnections.ps1](./QUY_Get-DMSSIMConnections.ps1)
77

88
Lists all SqlConnections
99

10-
+ [QUY_Get-DMSGeneric.ps1](./QUY_Get-DMSGeneric.ps1)
10+
+ [QUY_Get-DMSSIMGeneric.ps1](./QUY_Get-DMSSIMGeneric.ps1)
1111

1212
Returns the specified columns from the specified table
1313

14-
+ [QUY_Get-DMSSRReports.ps1](./QUY_Get-DMSSRReports.ps1)
14+
+ [QUY_Get-DMSSQLAgentJobs.ps1](./QUY_Get-DMSSQLAgentJobs.ps1)
15+
16+
Gets a SQL Agent Job objects
17+
18+
+ [QUY_Get-DMSSQLAgentJobSchedules.ps1](./QUY_Get-DMSSQLAgentJobSchedules.ps1)
19+
20+
Gets a job schedule objects
21+
22+
+ [QUY_Get-DMSSQLDatabaseRoles.ps1](./QUY_Get-DMSSQLDatabaseRoles.ps1)
23+
24+
Gets the roles and there mmembers from the SQL database object
25+
26+
+ [QUY_Get-DMSSQLDatabases.ps1](./QUY_Get-DMSSQLDatabases.ps1)
27+
28+
Gets the SQL database objects
29+
30+
+ [QUY_Get-DMSSQLInstanceRoles.ps1](./QUY_Get-DMSSQLInstanceRoles.ps1)
31+
32+
Gets the roles from the SQL Instance object
33+
34+
+ [QUY_Get-DMSSQLLogins.ps1](./QUY_Get-DMSSQLLogins.ps1)
35+
36+
Get the Login objects in an instance of SQL Server
37+
38+
+ [QUY_Get-DMSSIMSRReports.ps1](./QUY_Get-DMSSIMSRReports.ps1)
1539

1640
Returns the ScriptRunner reports in the specified period

0 commit comments

Comments
 (0)