.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: If there is a delete trigger on a table and if truncate is fired on that table, state whether trigger will be activated?

Posted By :shankey     Posted Date :July 31, 2011    Points :40   Category :Others 
No, Because there is no log for Truncate table command.



You can also find related Interview Question to Database: If there is a delete trigger on a table and if truncate is fired on that table, state whether trigger will be activated?  below: 

Can we generate Trigger for two table and give a example ?

  
yes,we can create trigger on two tables.

CREATE TABLE T4 (a INTEGER, b CHAR(10))

CREATE TABLE T5 (c CHAR(10), d INTEGER)

CREATE TRIGGER trig1
AFTER INSERT ON T4
REFERENCING NEW AS newRow
FOR EACH ROW
WHEN (newRow.a <= 10)
BEGIN
INSERT INTO T5 VALUES(:newRow.b, :newRow.a);
END trig1
(More...)

Database: State whether Trigger is a stored procedure or not?

  
.Yes, It is a Stored procedure that initiates an action when an event occurs. (More...)

Database: State whether a trigger can be called or executed?

  
.No, It is called by DBMS automatically whenever any changes are made to the associated table. (More...)

State whether delete command activate the trigger?

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

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

Can we use Truncate command on a table which is referenced by FOREIGN KEY?

  
No. We cannot use Truncate command on a table with Foreign Key because of referential integrity (More...)

Can we use Truncate command on a table which is referenced by FOREIGN KEY?

  
No. We cannot use Truncate command on a table with Foreign Key because of referential integrity (More...)

Can we use Truncate command on a table which is referenced by FOREIGN KEY

  
No. We cannot use Truncate against of referential integrity. (More...)

how to find the table name in sql server database?

  
select * from INFORMATION_SCHEMA.tables where table_name like 'tblname%' (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