ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
How to find the date and time of last updated table?
 Question Submitted By :: Durga Prasad
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to find the date and time of last updated table?
Answer
# 1
USE TRIGGER OR ADD DATETIMESTAMP COLUMN IN A TABLE WITH 
DEFAULT VALUE OF GETDATE()
 
Is This Answer Correct ?    6 Yes 1 No
Monal
 
  Re: How to find the date and time of last updated table?
Answer
# 2
select name,create_date,modify_date from sys.tables
order by modify_date desc
 
Is This Answer Correct ?    0 Yes 2 No
Smitha
 
 
 
  Re: How to find the date and time of last updated table?
Answer
# 3
USE TRIGGER OR ADD DATETIMESTAMP COLUMN IN A TABLE WITH 
DEFAULT VALUE OF GETDATE()
 
Is This Answer Correct ?    0 Yes 0 No
Ram
 
  Re: How to find the date and time of last updated table?
Answer
# 4
SELECT OBJECT_NAME(OBJECT_ID) AS DatabaseName, 
last_user_update,*
FROM sys.dm_db_index_usage_stats
WHERE database_id = DB_ID( 'DataBaseName')
AND OBJECT_ID=OBJECT_ID('TableName')
 
Is This Answer Correct ?    0 Yes 0 No
Vidit Tyagi
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
In clustered and non clustered indexes which one is faster while executing a query ?  1
How to handle errors in Stored Procedures. I want to display a message to the user in the .aspx page that is calling a stored procedure in it's code behind. please help me. 247Customer1
Following are some of the question related to below mentioned query? select e1.salary from employee3 e1 where 2= ( select count(distinct(e2.salary)) from employee3 e2 where e2.salary>=e1.salary ) 1) What the query returns? 2) How it works? - Detail explanation (what the sub query does, why it is (where 2=)....etc...Please?  3
Please give me the SP for the below scenario. I have two tables named Table1 and Table2...I need to fetch record by record from Table1 and insert the record in to table2 where the value in the sno column of the table1 is even number. Value-Labs4
Can Having clause be used without Group by clause? CTS4
What types of integrity are enforced by a foreign-key constraint  1
how to get 25th row in any table in sqlserver can u tell me syntax  4
Differnce between sel server 2000 and 2005  3
PC(code, model, speed, ram, hd, cd, price) Find the hard drive sizes that are equal among two or more PCs. APX2
What is Transaction?  2
What are the pros and cons of creating extended stored procedures?  1
How To Make password Protected SQL Server 2005 Database i.e when i open SQL Server database then ask for password.  1
What is blocking and how would you troubleshoot it?  1
What is the difference between windows authentication and sql server authentication HCL4
What is a cursor in SQL Server 2000 and their types?  4
What is the datatype returned by count(*) Asian-CERC18
Explain the basic concepts of SQL server architecture?  2
When do you create cluster and noncluster index? Satyam4
Table student containing 2 columns,Join date,Employee name. Under join date 4 rows r ter =1-jan-2008,2-feb-2008,3-mar- 2008,4-feb-2008.Under Employee name 4 difeerent names jaison,robin,binoy,rahul Result set is, Table containing 4-column name=jan,feb,mar,april,,beneath these months count is given as 1,2,1,0 means these counts representing number of emplooyees joined in a month(january 1employee,february 2 employee,march 1 employee,april 0 employee) Can you give me the required sql query Wipro3
what is Data Transformation Services (DTS) ?can u explain me in detail? TCS5
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com