adspace


How to delete all rows with truncate table statement in ms sql server?

Answer Posted / Shobhit Kumar Gupta

The TRUNCATE TABLE statement is used to remove all records from a table. It deallocates the space occupied by the table but does not reinitialize the object identification (ObjectID) values, unlike DELETE.n`nTRUNCATE TABLE YourTableName;n`

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I find query history in sql server?

1024


What is acid mean in sql server?

1245


How do I start sql server 2017?

1015


What are the kinds of subquery?

1107


When should you use an instead of trigger?

1052


Explain “row_number()” in sql server with an example?

1079


Why should you use or avoid select * statements?

1109


You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?

1213


What is normalization and what are the advantages of it?

1055


How to convert numeric expression data types using the cast() function?

1149


What is the difference between for xml raw and for xml auto?

1117


Explain system functions or built-in functions? What are different types of system functions?

1065


Can we make the the chages By Using the Sql if u know any function or process please inform me Actuall result: BRK1 Break 1 Part 1 00:01:00:00 60 BRK1 Break 1 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 BRK2 Break 2 Part 2 00:01:00:00 60 BRK2 Break 2 Part 3 00:01:00:00 60 BRK3 Break 3 Part 1 00:01:00:00 60 BRK3 Break 3 Part 2 00:01:00:00 60 Desired O/P: BRK1 Break 1 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 Part 3 00:01:00:00 60

2295


what is spatial nonclustered index

1058


How to convert character strings into numeric values?

1190