Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Interview Questions
Database:What is a delete command?
Posted By :
Posted Date :
July 31, 2011
Delete command removes one row at a time with an entry in transaction log for each deleted row.
You can also find related Interview Question to
Database:What is a delete command?
How To Delete Description Value for a Column in Table using SQL Command?
We can Delete Description from Column using sp_dropextendedproperty System Store Procedure.
Sample Command to Delete Description from Column in a Table:
EXEC sys.sp_dropextendedproperty @name=N'MS_Description', @value=N'My Description for Column Here' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MyTableName', @level2type=N'COLUMN',@level2name=N'ColumnName'
Which SQL command is used to delete entire structure of the table?
Name of the command to view the current amount of free (unallocated) space in the database in SQL Server?
Name of command is :sp_spaceused
This command displays the database_size in MB, and it's also shows unallocated space for the database.
Delete and Truncate Command:
DELETE is a DML command and can be rolled back
Delete can use where clause
TRUNCATE is a DDL command and cannot be rolled back. All of the memory space is released back to the server
Truncate cannot use where clause
Difference between Delete and Truncate command?
Delete a row based on where Condition.
Delete all the Rows from table.
Database:Difference between delete and truncated?
Tuncate is faster and do few system and transcation log resource.
Database:Truncate is a DDL or DML command?
Truncate is a DDL statement.
Database: If there is a delete trigger on a table and if truncate is fired on that table, state whether trigger will be activated?
No, Because there is no log for Truncate table command.
State whether delete command activate the trigger?
Yes, Delete command activate the trigger only if delete trigger is written on a table.
Delete is which type of command?
Delete is a DML command.
State the command that is used to rename a database?
Which command is use to change database level settings?
"Alter database" command is use to change database level settings?
Database:Which command will give sql server version and OS information?
Database Concurrency in Sql Server.
When two or more user try to update same type of data in a table then Database Concurrency helps in this situation.
There are 2 types of Database Concurrency
Pessimistic: When one user try to change the data with pessimistic concurrency then a lock is placed on the data in a table so that another user cannot change data. when one user finishes then other user can able to change.
Optimistic: When two user works on the same data in a table and one change that data first then second user cannot change that same data becasue the which he have using is allready changed so he cannot do the change becasue change apply to another data that is changed by first user.
Quick Links For Interview Questions Categories:
Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.
So, Start looking our
section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.
Hall of Fame
Terms of Service
Tell A Friend