ACTT MS - SQL - Extract Script Instructions
ACTT MS - SQL - Extract Script Instructions
ACTT MS - SQL - Extract Script Instructions
Script Security
The script contains read only queries and does not create or update any tables within the database. You
can and should review the script to obtain comfort over what it is performing. If there are any concerns,
it is appropriate to execute this script using database credentials that do not have update database access.
In addition to the above files, you need below system requirements for running the script:
1) PowerShell version on your server needs to be version 3.0 and above.
2) PowerShell Execution policy needs to be set to RemoteSigned. The command below needs to be
executed on PowerShell prompt prior to executing the ACTT script on the server and this setting affects
only the current Windows PowerShell session.
Note
When running the SQL Query, standard change management procedures should be applied.
Please contact your Deloitte team member for assistance should you encounter any errors.
Step-by-Step Instructions:
Note: The User ID that will be used to extract data should have read access on SYSTEM tables as
well.
Step I: Extract the files from the zip file to a folder on the Windows server(s) where MS SQL
Database is installed.
Step III: Execute the PowerShell Script (by right click the file and choosing “Run with
PowerShell”)
Enter the SQL Server Instance names in semicolon(;) separated format: Provide the list of SQL
servers from which data needs to be extracted in single go.
1. For single Database: Enter database name(case sensitive based on your instance configuration)
Data will be extracted on the location from where the Script was executed.
This could take a few minutes, but could take longer. Some of the factors that will impact the time
include:
Amount of data being extracted
Connection speed to the database
Processing power of the database
Other processes running concurrently on the database
If Multiple SQL servers (SERVER_1, SERVER_2, SERVER_3) were selected for extraction, after the
successful execution you will have three zip files <SQLInstanceName>.zip created at the location in
which the script was executed.
Common Errors:
Error: Get-Content: Cannot find path ‘…’ because it does not exist.
Solution: When prompts for SQL server name, provide the correct SQL Server full name as
displayed in SQL Server Management Studios and please make sure username and password are
correct.