Problem: SQL Compilations/Sec greater than 50 sec in a mid-end backend.
Cause: Store procedures not being fully parameterized. If they were, their plans could have been cached and reused for same runs with different parameters.
Some related links:
http://www.sql-server-performance.com/tips/stored_procedures_p1.aspx
http://www.sql-server-performance.com/tips/sql_server_performance_monitor_coutners_p1.aspx
http://support.microsoft.com/kb/243588
http://msdn.microsoft.com/en-us/library/aa212698(SQL.80).aspx
Wednesday, November 12, 2008
Wednesday, November 5, 2008
Tuesday, September 23, 2008
Sansa m250: How to see it as a drive on XP
Menu, Settings, USB, choose the one that is not Autodetect ☺
Tuesday, September 16, 2008
SharePoint: Output caching not retrieving pages from cache
Symptom:
for subsequent requests, you see the date in the output page (right click IE page, View Source, etc) updated (it should remain constant for the period of time page in cache is not invalidated):
>>> Rendered using cache profile:Public Internet (Purely Anonymous) at: 2008-09-16T12:59:31
Solution:
This issue may happen for requests that include query strings, like '?var=val'.
Go to http://your%20server/cache%20profiles/allitems.aspx, and set 'Vary by Query String Parameters' to the value of the query param (in the example above, 'var') for the appropriate cache profiles.
for subsequent requests, you see the date in the output page (right click IE page, View Source, etc) updated (it should remain constant for the period of time page in cache is not invalidated):
>>> Rendered using cache profile:Public Internet (Purely Anonymous) at: 2008-09-16T12:59:31
Solution:
This issue may happen for requests that include query strings, like '?var=val'.
Go to http://your%20server/cache%20profiles/allitems.aspx, and set 'Vary by Query String Parameters' to the value of the query param (in the example above, 'var') for the appropriate cache profiles.
Thursday, September 11, 2008
SharePoint: Root folder element not returned through SPList.GetItems(SPQuery)
Problem: a query like this
on a list like with one element like
Folder, MyField='ABC'
was not returning the element.
Solution:
See here why ☺
SPQuery q = new SPQuery();
q.Query = "<Where><Eq><FieldRef Name='MyField'/><Value Type='Text'>ABC</Value></Eq></Where>";
q.ViewAttributes = "Scope=\"Recursive\"";
SPListItemCollection c = l.GetItems(q);
Console.WriteLine(c.Count);
on a list like with one element like
Folder, MyField='ABC'
was not returning the element.
Solution:
q.ViewAttributes = "Scope=\"RecursiveAll\"";
See here why ☺
Tuesday, August 12, 2008
Perfmon: "Unable to connect to machine"
1) grant Local Service full control permissions on HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Perflib
2) Start Remote Registry service
NT\CurrentVersion\Perflib
2) Start Remote Registry service
Friday, August 1, 2008
SQL: retrieve store procedures definitions in SQL Server
select P.name, M.definition
from sys.sql_modules M
inner join sys.procedures P
on P.object_id = M.object_id
order by P.name
Subscribe to:
Posts (Atom)