
- #Sql server xp list directory contents update#
- #Sql server xp list directory contents code#
- #Sql server xp list directory contents password#
See the Traefik documentation for more details. This path is then used by the Traefik service configuration, where the is specified as C:/etc/traefik/config/dynamic (where the certs_config.yaml file is). traefik folder to the running container at C:/etc/traefik.

This entire traefik folder is made available for the Traefik container with a Docker volume in the docker-compose.yml file: traefik:
#Sql server xp list directory contents update#
You do not have to update any of the variables that have a value specified at this time, but you must specify values for the variables that are empty.Īn empty folder where you put the certificates you generate.Ī Traefik configuration file used by the Traefik container. The Installation Guide for a Developer Workstation with Containers describes each of these variables, and what values you can specify. MEDIA_REQUEST_PROTECTION_SHARED_SECRET=HQ(NjM(u6_5koVla-cTf4ta8x1h6Sb+ZcUQrULUz-0Afpx0cx-NuMtIoQkpDFmX5 # You should change the shared secret to a random string and not use the default value TRAEFIK_IMAGE=traefik:v2.2.0-windowsservercore-1809 env file has the following unassigned values: COMPOSE_PROJECT_NAME=sitecore-xp0
#Sql server xp list directory contents password#
The mssql service, for example, sets an environment variable to configure the SQL Server SA password ( SA_PASSWORD): mssql: You can see how these are used in Sitecore containers in the docker-compose.yml file. The values here provide default values for any environment variables referenced in the Compose file (for example SITECORE_DOCKER_REGISTRY), or you use it to configure Compose (for example COMPOSE_PROJECT_NAME).Įnvironment variables are the recommended way to pass configuration settings into containers. It contains information about the different containers (referred to as services) and their configuration.įor Sitecore, the services generally represent the individual Sitecore roles that make up the topology (mssql, solr, id, cm, and so on). The procedure find these lines and extracts the NNNN number near the 'bytes' word and converts it to a number in MB units.This Compose file is the main configuration file used by the docker-compose command.
#Sql server xp list directory contents code#
This code will be very useful to me.Įach dir command (dir directoryname ) output is a list of lines that always ends with a line like this : INSERT INTO #SubTreeDirs(dirPath) SELECT this code:ĮXEC xp_cmdshell the second issue I changed the DOS command from this: I fixed the first issue by adding this line: Then I looked closer and found someone had put a pagefile where it should NEVER be. When I calculated the folder sizes manually, the total was the same as yours but xp_fixeddrives reported way more space being used. I found this when the totals from your procedure were way less that was was reported on a drive will only 5 folders. So if you specified C:\TEMP and there were 3 files in C:\TEMP and 4 sub-folders, the files in the sub-folders are used in the size calculations BUT the 3 files in C:\TEMP are ignored.Ģ. It did not consider any files in the root of the filepath. Thanks for taking the time to create and share this script. I hope that this procedure will serve you fine. Thank you for your two very important additions to my procedure. Root folder C:\TEMP, I run the following: Using the above stored procedure to find the 10 largest directories under the create the table that holds the output of directory name and sizeĮXEC _cmdshell = ltrim(replace(substring(textline, charindex(')', textline) + 1, len(textline)), ',', '')) create table that holds all the DIR commands output executed on each directoryĬREATE TABLE #TempTB (textline VARCHAR(400)) Create a table that holds all directory names in sub tree Here is the T-SQL script for the stored procedure I used to solve this problem:ĬREATE PROCEDURE Top10FolderSubTreeSizeReport VARCHAR(80))

The starting folder and inserts the data into a temporary table called #SubTreeDirs. This gives us all the directory names and paths in the sub tree under
