AnalyzeTableColumns |
|
Provide metadata for a table's columns and list the distinct values held in the column (up to a maximum number) |
CalculateTableLoadingOrder |
|
Work out dependency between tables and work out loading order |
CheckInstantFileInitializationState |
|
Checks if IFI is enabled (Note: for systems earlier than SQL Server 2014 SP2 the procedure must create and drop a database to test) |
ClearServiceBrokerTransmissionQueue |
|
Removes all messages in the service broker transmission queue by ending all existing conversations |
CreateLinkedServerToAzureSQLDatabase |
|
Creates a linked server that points to an Azure SQL Database |
CreateSQLLoginWithSIDFromDB |
|
Creates a SQL Login with SID retrieved from a database |
CurrentSessionDecimalSeparator |
|
Works out what the decimal separator is for the current session |
CurrentSessionThousandsSeparator |
|
Works out what the thousands separator is for the current session |
DropTemporaryTableIfExists |
|
If the temporary table is defined in the current session, the table is dropped |
EmptySchema |
|
Removes objects in the specified schema in the specified database |
EmptySchemaInCurrentDatabase |
|
Removes objects in the specified schema in the current database |
ExecuteCommandInEachDB |
|
Executes a T-SQL Command in each database |
ExecuteJobAndWaitForCompletion |
|
Executes a SQL Server Agent job synchronously (waits for it to complete) |
FindStringWithinADatabase |
|
Finds a string anywhere within a database. Can be useful for testing masking of data. |
IsIPv4Address |
|
Determines if an input string is a valid IP v4 address |
IsJobRunning |
|
Determines if a SQL Server Agent job is running |
IsLockPagesInMemoryEnabled |
|
Checks if LPIM is enabled |
IsXActAbortON |
|
Checks if XACT_ABORT is on |
LastSQLServerRestart |
|
Returns the last time the SQL Server was restarted |
LatestSQLServerBuilds |
|
View returning latest release and patch level for all supported SQL Server versions |
ListAllDataTypesInUse |
|
Lists all data types in use |
ListColumnsAndDataTypes |
|
Lists the data types for all columns (user tables only) |
ListConstraintsWithSystemNames |
|
List constraints that have system generated names (prefer appropriate assigned names) |
ListDisabledIndexes |
|
List indexes that are disabled with both key and included column lists |
ListEmptyUserTables |
|
Lists the schema and table names for all empty tables |
ListForeignKeyColumns |
|
List foreign keys with both source and referenced columns |
ListForeignKeys |
|
List foreign keys with column lists |
ListIncomingForeignKeys |
|
List foreign keys with column lists filtered by the target schemas and tables |
ListIndexes |
|
List indexes with both key and included column lists |
ListInstalledSQLServerInstances |
|
Lists all installed SQL Server instances |
ListMismatchedDatabaseCollations |
|
List databases with collations that don't match the server's collation |
ListMismatchedDataTypes |
|
List columns with the same name that are defined with different data types (user tables only) |
ListNonIndexedForeignKeys |
|
List foreign keys where the foreign key columns are not present as the first components of at least one non-clustered index |
ListPotentialDateColumns |
|
Lists columns that are named as dates but use datatypes with time |
ListPotentialDateColumnsByValue |
|
Lists columns that are defined with datatypes that include a time component but no time value is present |
ListPrimaryKeyColumns |
|
Lists the columns that are used in primary keys for all tables |
ListSubsetIndexes |
|
Lists indexes that appear to be subsets of other indexes |
ListUntrustedCheckConstraints |
|
Lists untrusted check constraints. Ignores disabled constraints. |
ListUntrustedForeignKeys |
|
Finds foreign keys that are not trusted |
ListUnusedIndexes |
|
List indexes that appear to be unused (user tables only) |
ListUseOfDeprecatedDataTypes |
|
Lists any use of deprecated data types (user tables only) |
ListUserDefinedDataTypes |
|
Lists the user defined data types in a database |
ListUserHeapTables |
|
Lists the user tables that do not have a clustered index declared |
ListUserTableAndIndexSizes |
|
Lists the size and number of rows for all or selected user tables and indexes |
ListUserTableSizes |
|
Lists the size and number of rows for all or selected user tables |
ListUserTablesWithNoPrimaryKey |
|
Lists the user tables that do not have a primary key declared |
ListViewColumnsAndDataTypes |
|
Lists the data types for all columns (user views only) |
NonDefaultSystemConfigurationOptions |
|
View returning SQL Server Configuration options that are not at their default values |
OperatingSystemConfiguration |
|
Configuration of the current operating system |
PGObjectName |
|
Converts a SQL Server object name to a PostgreSQL object name |
PrintMessage |
|
Prints a message immediately rather than waiting for PRINT to be returned |
ProductVersionComponents |
|
Extracts the components of a product version |
ProductVersionToBuild |
|
Extracts a product build from a build number (product version) |
ProductVersionToMajorVersion |
|
Extracts a product major version from a build number (product version) |
ProductVersionToMinorVersion |
|
Extracts a product minor version from a build number (product version) |
ProductVersionToRelease |
|
Extracts a product release from a build number (product version) |
ReadCSVFile |
|
Reads a CSV file's data and outputs it as a set of columns |
ReseedSequenceBeyondTableValues |
|
Sets the sequence to a value beyond any column value that uses it as a default |
ReseedSequences |
|
Sets the sequences to a value beyond any column value that uses them as a default |
ResetSequence |
|
Resets the next sequence value to start with 1 |
RetrustCheckConstraints |
|
Tries to retrust untrusted check constraints. Ignores disabled constraints. |
RetrustForeignKeys |
|
Tries to retrust untrusted foreign keys. Ignores disabled foreign keys |
ScriptAnalyticsView |
|
Scripts a data model table as an analytics view |
ServerMaximumDBCompatibilityLevel |
|
Returns the maximum database compatibility level for the server |
SetAnsiNullsOnForTable |
|
Changes the ANSI Nulls setting for a table to ON |
SetAnsiNullsQuotedIdentifierForStoredProcedures |
|
Changes the ANSI_NULLS and QUOTED_IDENTIFIER settings for selected procedures |
SetDatabaseCompabilityForAllDatabasesToMaximum |
|
Sets the database compability level for all databases to the maximum supported level |
ShowBackupCompletionEstimates |
|
Shows completion estimates for any currently executing backups |
ShowCurrentBlocking |
|
Lists sessions holding locks, the SQL they are executing, then lists blocked items and the SQL |
Sleep |
|
Sleeps for the given number of seconds |
SQLServerType |
|
Returns the type of SQL Server for the current session |
SQLServerVersion |
|
Returns the version of SQL Server (e.g. 2012, 2014, 2008R2) |
SQLServerVersionForCompatibilityLevel |
|
Converts a database compatibility level to a SQL Server version |
TableOfNumbers |
|
Returns a table of numbers with a specified number of rows from the specified starting value |
UpdateStatistics |
|
Update statistics for selected set of user tables |