How to delete all rows with truncate table statement in ms sql server?
Answer / 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 |
You have several tables, and they are joined together for querying. The tables contain both clustered indexes and non clustered indexes to optimize performance, how should you distribute the tables and their indexes onto different file groups?
What is the difference between migration and upgradation in sql server?
If there exist a index on the table, and we then make a view on that table (include the indexed column from base table) than why do we require indexing on view?Doesnt it create an overhead?
Explain what is sql server english query?
What is an example of a primary key?
How do I change my passwords (database, LDAP, and so on) without causing an outage?
How to end a stored procedure properly in ms sql server?
What are filegroups in sql server?
sql database suspect We have a sql database that is showing as suspect. How can we recover?
What is ddl command?
Syntax to find the used space and free space of the Data file in a database(SQL Server). Following queries didn't give the exact Used space and Free Space Information sp_spaceused;DBCC showfilestats;exec MyDbName.dbo.sp_spaceused;SP_HELPFILE Can any one tell me the query for how to find the exact used data file space and free space in a Data File?
What are the steps you can take to avoid “deadlocks”?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)