Scripts

Technical Article

Sp to enable, disable or list all Triggers in a DB (SQL 7)

This SP enable,disable or list all the Triggers in the given database.If enable or disable are specified, finds all the triggers of all the tablesand enable or disable them, After that, it list all the triggers with it´s current state.If List is specified, then it only list the triggers with it current state. I didn't […]

You rated this post out of 5. Change rating

2002-09-16

617 reads

Technical Article

Stored procedure sp_for

The sp_for procedure provides simple single-statement loop processing for T-SQL statements, similar to the FOR command in the C language or the DOS command-line utility by the same name.It's syntax is similar to that of the DOS command.  It takes an argument to represent a variable, initialize the variable, set an increment, set an end […]

You rated this post out of 5. Change rating

2002-09-13

917 reads

Technical Article

FASTCOUNT() User-Defined Function (SQL 2000 only)

SQL Server's COUNT() function is a slow and expensive way to count a table's rows because it scans the entire table or index.  FASTCOUNT(), which I created, is much more efficient for this purpose - its only drawback being that it may return inaccurate results if a nonlogged (e.g., bulk) data modification operation was recently […]

You rated this post out of 5. Change rating

2002-09-10

870 reads

Technical Article

For SQL 2000.Scan all indexes for fragmentation

This script creates an error message with a valid error number, and alert associated with the error message. (everything when it doesn't exists). Then captures all the user indexes in the database and executes DBCC ShowContig for each one. It calculates the % of fragmentation on leaf level and fires the alert when is fragmented.Then […]

(1)

You rated this post out of 5. Change rating

2002-09-10

2,323 reads

Blogs

Stanford Emerging Technology Review 2026 Report is out

By

Artificial Intelligence and quantum computing are two areas of emerging technology that receive most...

How I Troubleshoot a Slow SQL Server Live

By

No two SQL Server environments are alike. A fix that resolves a performance issue...

T-SQL Tuesday #201 Invitation: Temp Tables, Friend or Foe?

By

My T-SQL Tuesday #201 invitation. Do temp tables help performance or hurt it? I...

Read the latest Blogs

Forums

Alamat Kantor BCA KCU Asemka Telp:08218154374

By layanan_Bca88

Hub Via Wa:628218154374 Alamat: Jl. Asemka No.27-30, RT.1/RW.6, Pinangsia, Kec. Taman Sari, Kota Jakarta...

Alamat Kantor BCA KCU Kalimalang Tlp:08218154374

By m4rt1n4

Hub Via Wa:628218154374 Alamat: Jl. Tarum Barat Blk. E No.5, RT.4/RW.10, Wil. Kota, Kec....

Alamat Kantor BCA KCU Rawamangun Tlp:08218154374

By R4nt4u

Hub Via Wa:628218154374 Alamat: Jl. Paus No.81, RT.1/RW.8, Wil, Kec. Pulo Gadung, Kota Jakarta...

Visit the forum

Question of the Day

The Service Name

What does @@servicename return?

See possible answers