.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> Others >> Post New Question Subscribe to Interview Questions

Database:What is a delete command?

Posted By :shankey     Posted Date :July 31, 2011    Points :40   Category :Others 
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?  below: 

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' (More...)

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. (More...)

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

(More...)

Difference between Delete and Truncate command?

  
Delete Command:
Delete a row based on where Condition.
Truncate command:
Delete all the Rows from table.

(More...)

Database:Difference between delete and truncated?

  
Tuncate is faster and do few system and transcation log resource.
(More...)

State whether delete command activate the trigger?

  
Yes, Delete command activate the trigger only if delete trigger is written on a table. (More...)

Which command is use to change database level settings?

  
"Alter database" command is use to change database level settings? (More...)

Database:Which command will give sql server version and OS information?

  

SELECT SERVERPROPERTY('productlevel')
SELECT SERVERPROPERTY('productversion')
SELECT SERVERPROPERTY('edition') (More...)

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. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

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 Interview Question 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    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend