-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Welcome to the TSQLExamples wiki!
This optional script creates the TSQLExample database with no optional arguments. It also creates three tables, TableA, TableB, TableC and inserts a handful of records in each.
This script provides approximate row counts using sys.objects, sys.indexes and dm_db_partition stats. This script should be used on large databases when an exact row count is not needed.
This script returns the size of each schema of a database in megabytes.
This script sums the result of a union query.
This script returns a list of table names with create date, schema name, row counts, used size in megabytes and total size in megabytes.
This script coverts a standard SQL datetime column to ISO 8601 format.
This script returns a pseudo random date in a range using datediff, dateadd and rand()
This script returns pseudo random dollar amounts between a user specified limit.
This script geocodes a point stored in decimal format.