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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   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 ?    5 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 ?    1 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
 
How to Create Login and User through query in Sql server 2005.and also how to delete Login and User through query?  2
What are Sql Reporting Services and analysis services? Can u Explain  1
How can i change the column name. HCL7
What is the difference between local table and global table Polaris1
Anyone please explain me the concept of Serialization?  3
can you any body tell me the how to decrease the logfile  4
Explain Trigger with an example?  1
Please give me queries for the following 1. To get the count of duplicate records. 2. A query to delete the duplicate records. 247Customer3
is it possible to use a variable in a query with the IN clause (a,b,c..z), without getting quotes or conversion errors?  2
how to rename the table  3
How to delete particular value in the column of a table.Is it possible or not?if possible give it as in query.  4
How to Generate a Series of Random Integers With T-SQL?  1
what is bit data type? and what are the information that can be stored inside a bit column?  2
After using delete statement in sql query to delete some records...to retrieve the deleted records we can get using rollback command but till that where it stores means particular location name i need....(after deleting and rollback ) iGate2
Can I remove the default constraint columns in SQL SERVER? Value-Labs3
What is the difference between login and a user? TCS7
In performance wise distinct is good or group by is good? eg:select name from emp group by name; select distinct name from emp; Infosys4
What is de-normalization and when do you do it?  3
what are the problems in logshipping?  2
How to Display, Amount of Disk Activity Generated by Transact-SQL Statements?  1
 
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