Technical Article

Truncating and deleting all tables in a database

Sometimes, during test stage, you may need to truncate or delete all your tables in a database, without droping constraints, truncating and recreating constraints (DRI). You can use the TRUNCATE TABLE statement to removes all rows from a table without logging the individual row deletes, but tables referenced by a FOREIGN KEY constraint can not […]

4.67 (3)

2002-04-17

1,509 reads

Technical Article

List of triggers in a database

Give the following information, about triggers in the database.Parent_Name      Parent_Type Name                         Type               Insert Update Delete IsFirstInsertTrigger IsFirstUpdateTrigger IsFirstDeleteTrigger IsLastInsertTrigger IsLastUpdateTrigger IsLastDeleteTrigger

4.5 (2)

2002-04-16

778 reads

Blogs

Hiding Email with a Dynamic Data Masking Function–#SQLNewBlogger

By

Another post for me that is simple and hopefully serves as an example for...

Get SQL Server 2022 Now: It’s Called Azure

By

If you’re like me, your palms went into a cold sweat to get your...

Daily Coping 29 Nov 2021

By

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

Read the latest Blogs

Forums

Retry SQLAgent Job

By MrBen

Hello. Does anyone know how I can retry a job should any one of...

Get Summary Data for Last 52 weeks by Week

By skb 44459

I have a table which stores shipment data by date. We have a need...

create index columnstore

By abdalah.mehdoini

hello , Who has any idea please how to rebuild a clustered index to...

Visit the forum

Ask SSC Logo Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers