Friday, 24 May 2013
       
AUSQLUG Forums Home   Search   Login   Register   Member List  

  Viewing User Profile for: mr_fj
 About  Contact
Joined: 30 Jan 2007 04:19 PM
Last Login: 06 Feb 2009 10:16 AM
Website:
Location: Unavailable to anonymous users.
Occupation: Unavailable to anonymous users.
Interests: Unavailable to anonymous users.
Signature:
Email: Unavailable to anonymous users.
MSN IM: Unavailable to anonymous users.
AIM: Unavailable to anonymous users.
Yahoo IM: Unavailable to anonymous users.
ICQ: Unavailable to anonymous users.
 Post Statistics
mr_fj has contributed to 2 out of 1,787 total posts (0.11% of total).
Most Recent Posts:
Re: Rowcount from all tables in database 30/01/2007 4:48:44 PM   (Total replies: 1)
Hi Phil, SysIndexes works when you put an index to a table. Also, you need to update the statistics when ever you insert data into a table to get reflected in the index table. You can use following query to get the row-count: SELECT 'SELECT COUNT(*) AS [RowCount] FROM ' + so.Name FROM SysObjects so WHERE so.xType = 'U' Only issue is that you have to run this in the SQL Query Analyser to run the output. Let me know if this solves your problem. Cheers, Fred

Re: Slide deck and discussion re July 07 meeting - Understanding Execution Plans (Greg Linwood) 18/07/2007 10:05:34 AM   (Total replies: 0)
Hi Greg, I had a query where I fine-tuned the query in the Query Analyser and it took 3mins to run, but after I moved the code to SP and the fine-tuning didn't work (it took more than an hour to run). In ran the profiler with Execution Plan event on and found that the hints I gave is not used once inside the sp. This particular select statement is one of many statements that populate a temp table inside the sp. Do you have any idea as to why this is happening? I got around this ...

Search for more...