Maintenance and Management

Technical Article

All tablename and Record Count in a Database

  • Script

Hello,Here is a way that help in getting all the table name and rowcount with in a database The use can give the database name and it will show the output for that database.Output can be ordered by name or by number of rows.To use it : Copy the script and run paste in QA […]

You rated this post out of 5. Change rating

2005-11-14 (first published: )

122 reads

Technical Article

Script Login Roles Permissions in all DBSs

  • Script

Populate @list variable with account(s) to script. Save output to recreate:Login, Password,Default DB,Server Roles,DB Access,DB Roles,DB Object PermissionsDB level permissions are scripted in all databases. Can recreate a single login, or accepts comma delimted list of logins.NOTE:Stored procedures are created in Master, but are deleted

You rated this post out of 5. Change rating

2006-01-19 (first published: )

1,742 reads

Technical Article

Notification of schema changes - Advanced

  • Script

This script modifies another excellent script written by SHAS3. The original script examines tables for changes and sends an email. This modification examines all stored procedures, tables, indexes, etc. in ALL databases or just the CURRENT database. If changes are detected, the script has the option to either email or log to a table that […]

You rated this post out of 5. Change rating

2005-10-26 (first published: )

250 reads

Technical Article

Transaction Log Will Not Truncate

  • Script

I saw a posting recently of a DBA not being able to truncate a transaction log. I rememberred this script that I had, (downloaded from Microsoft Support many moons ago), which did the job for me. It basically filled the log with data, then truncated and shrank the log. All important points throughout the script […]

You rated this post out of 5. Change rating

2005-10-28 (first published: )

388 reads

Technical Article

Shrink Log file for all Databases

  • Script

I use this script to shrink the log files for development databases. The intention is keep the log files as small as possible when the database is not in use. By scheduling this script I can control when it happens as oppose to using auto shrink.

1.5 (2)

You rated this post out of 5. Change rating

2005-07-08 (first published: )

2,523 reads

Technical Article

Run SQL on All servers in your inventory

  • Script

There are many times you have to deploy a common code in all of your SQL Servers. I am sure there might be thousands of way to do this, but here is how I do it and it works great. Good thing is - you can either pass SQL Statement or a SQL script (in […]

5 (2)

You rated this post out of 5. Change rating

2007-03-05 (first published: )

817 reads

Blogs

Monday Monitor Tips: CIS Compliant

By

A new feature added to Redgate Monitor Enterprise automatically. CIS compliance is something many...

My 2024 in Data: Music

By

This is my last week of the year working (I guess I come back...

A New Word: Suente

By

suente– n. the state of being so familiar with someone that you can be...

Read the latest Blogs

Forums

adding dtc to my pkg

By stan

Hi below i show the control flow of my pkg.   I'd like to enlist...

Vendor claims unused table space impacts performance

By webrunner

Hello experts, I got a report from an application owner of degraded performance for...

Automating Export of PowerQuery to SQL Server using DAX Studio...?

By pietlinden

I wrote a PowerQuery that parses a table from a PDF, and I want...

Visit the forum

Question of the Day

Superseded Indexes

Which of these indexes is superseded by another?

See possible answers