C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !



Posted By: venkatesan       Member Level: Diamond       Posted Date: 25 Apr 2008       Category: SQL Server

track date and time of the last write access



You want to track date and time of the last write access (INSERT, UPDATE) per row. How can you achieve that?






Select Answer:

1. Add a TIMESTAMP column to the table; SQL Server will automatically track date and time of every change.
2. Add a DATETIME column to the table and assign getdate() as the default value.
3. Add a DATETIME column to the table and write a trigger that sets its value
4. Add a UNIQUEIDENTIFIER column to the table and use it with SQL Server's built functions.




      
Your Test Score: 0 / 0



Next Question: What's the maximum number of parameters can a SQL Server 2000 stored procedure have
Previous Question: datetime
Related Questions:
  • Which system tables contain information on privileges granted and privileges obtained


  • You need to install a new production installation of SQL Server 2005. The server purchased for your installation has four CPUs. Which edition of SQL Server 2005 should you choose to make use of all the CPUs?


  • If i write a SQL as "SELECT * FROM TABLE A,TABLE B" then by default which join will be applied?


  • Which SQL statement is used to return only different values?


  • SQL commands are classified into how many broad categories


  • Categories

    ASP.NET C# VB.NET 
    .NET Framework SQL Server Other 

    Submit Interview/Test Questions with Answers and make money from adsense revenue sharing program

    Want to prepare for an interview? Try our aptitude tests and standard interview questions first.


    dotNet Slackers   BizTalk Adaptors    Web Design


    Contact Us    Privacy Policy    Terms Of Use