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   To Refer this Site to Your Friends   Click Here
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 :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to find the date and time of last updated table?
Answer
# 1
We can determine the last time a user table was altered 
using the below query.

SELECT name, create_date, modify_date
FROM sys.tables
ORDER BY modify_date DESC

The modify_date column is updated whenever a column is 
added or altered for the table. 
It is also updated if the clustered index is changed.
 
Is This Answer Correct ?    1 Yes 1 No
Payal Nath
 
  Re: How to find the date and time of last updated table?
Answer
# 2
select table_name from user_tables where last_analyzed in
(select max(last_analyzed) from user_tables)
 
Is This Answer Correct ?    0 Yes 0 No
Manoj
 
 
 
  Re: How to find the date and time of last updated table?
Answer
# 3
select table_name, to_char(last_analyzed, 'DD-MM-YY
HH:MI:SS') from user_tables where last_analyzed in (select
max(last_analyzed) from user_tables)
 
Is This Answer Correct ?    0 Yes 0 No
Manoj
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
what are the joins,primary key,foriegn key, candidate key, super key and expain them?  2
what is advantages in sql 2005 over sql 2000?  1
how many types of store procedre in sqlserver 2000? ATI2
Can we create a clustered index on composite primary key.  2
we have emp table like Ename,EDOJ,EDOB with Column structure.but we want to know the employee Age.How? Any Body Plz  6
How do I list the available tables in a database I'm querying?  3
What is transaction ? Give me one example. Melstar7
Questions regarding Raiseerror?  1
What's the purpose of Stored Procedure? Wipro3
How To delete duplicate record from a particular table? eXensys8
Difference between server.transfer and server.execute method?  1
what is normalization? what is denormalization? Satyam4
How to Debug a Stored Procedure? Allianz3
What are the pros and cons of creating extended stored procedures?  1
How the data stores in a page?  1
how to change column into row in sql  1
What are the different types of replication? How are they used?  3
How do you fine the performance tunning? Accenture2
What are the types of model in sql server and explain TCS1
can we call stored Procedure in Function in Sql Server 2000 and vice versa. eSoft1
 
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