Technical Article

Know all Database sizes in a server.

We can know how much space a database is occupied in hard disk by using sp_spaceused function. If we want to find all database sizes at a time, we have to provide use  and sp_spaceused for all databases. It takes some time to write all those T-sql statments. My script will find each and every […]

3 (2)

2003-09-16

1,652 reads

Technical Article

Get BCP out for all tables in a DB

           The script mentioned below will export data in all tables into textfiles to a physical path on your system using BCP utility from a Database. The sql commands used in this stored procedure are BCP utility,Identity function and temporary tables.    Here you required to give 4 input parameters, they […]

2002-03-15

1,820 reads

Technical Article

Rows count for each and every table in a DB 

       By using this script one can find number of rows for each and every table in a database. Just cut and past this script in your DB and excute. A stored procedure will be created as 'Get_rowcounts_for_eachtable'. If U excuted this stored procedure, U can get all tablenames and rowcounts for respected […]

2002-03-07

584 reads

Blogs

Techorama 2022 – Session Materials

By

You can find my slidedeck for the session “Introduction to Azure Data Factory” on...

Daily Coping 24 May 2022

By

I started to add a daily coping tip to the SQLServerCentral newsletter and to...

Notes on SQLSaturday Jacksonville 2022

By

I drove up to Jacksonville Friday afternoon to allow for bad traffic and immediately...

Read the latest Blogs

Forums

Logging sql stms into a table when there is a High cpu alert

By bobrooney.81

Hi, Whenever I get an high cpu alert , be it non-working hours or...

Transactions names meaning In Transaction Logs

By IT researcher

I am using .LDF file to get the information about when was DB last...

Iterate and reorganize subset of database tables

By ktflash

Ahoi, we are using the ola hallengren scripts to run the weekly index optimizer....

Visit the forum

Ask SSC Logo Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers