June 26, 2008 at 6:06 am
1) Query to find Number of rows in a table?
2) how to find the sizw of log file ( .ldf)?
3) how to find the size of Data file (.mdf)
June 26, 2008 at 6:22 am
4) how to do my own exams?
---------------------------------------
elsasoft.org
June 26, 2008 at 1:17 pm
dbcc sqlperf(logspace)--Log file size
select object_name(id) as Table_name, rowcnt [RowCount] from sysindexes where indid in (0,1)--Rowcount
You can use sp_helpfile for listing the database file size specifications.
Manu
June 26, 2008 at 7:31 pm
Heh... rowcount can be wrong in sysindexes unless you run the correct DBCC command to update them... that's a hint... look it up in Books Online.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 27, 2008 at 6:23 am
Thanks manu and Jeff
June 27, 2008 at 6:48 am
jezemine is correct, though. I didn't really help with your test questions and you should learn how to use Books Online to find those answers.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 27, 2008 at 9:58 am
Jeff is right you need to execute DBCC UPDATEUSAGE('Database Name') with count_rows so that you can rely on sysindexes results.
Manu
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply