Search
Purchase DNN Modules
Our success stories
ThermaPro Solutions (www.thermaprosolutions.com) is a leading company in Montreal, Canada - providing bed bugs detection and extermination services.
DotNetNuke (DNN) Resource Search
Only DNN - DotNetNuke Blog
FeedBurner Subscribe to Ismet Dumlupinar's DotNetNuke Blog



In this article I am going to share useful queries that i have used for troubleshooting DotNetNuke problems. You are also welcome to share your queries to help DotNetNuke Users.

1) If you want to remove unused modules from a DotNetNuke portal that has many pages you may use following query (Browse Host > SQL and paste this query at textbox and click to Execute button).

SELECT
    
DM.ModuleName,
    DM.FriendlyName,
    (
SELECT COUNT(*) 
     
FROM Modules 
       
WHERE ModuleDefId MD.ModuleDefId
    ) 
AS 'TotalInstances',
    (
SELECT COUNT(*) 
      
FROM Modules 
     
WHERE ModuleDefId MD.ModuleDefId 
        
AND IsDeleted 1
    
AS 'RecycleBinInstances' 
FROM DesktopModules DM
    
INNER JOIN ModuleDefinitions MD 
        
ON DM.DesktopModuleID MD.DesktopModuleID 
GROUP BY DM.ModuleName, DM.Friendlyname, MD.ModuleDefId 
ORDER BY 'TotalInstances'

 

This query will list modules with following columns:

  • ModuleName
  • FriendlyName
  • TotalInstances
  • RecycleBinInstances

Identify Unused Modules in a DotNetNuke Installation

Posted in: Tips

Post Rating

Comments

There are currently no comments, be the first to post one.

Post Comment

Name (required)

Email (required)

Website

CAPTCHA image
Enter the code shown above:




Web Hosting Blogs - BlogCatalog Blog Directory

blogarama - the blog directory


Web Development blogs & blog posts

2007 - 2011 www.onlydnn.com   |  Privacy Statement  |  Terms Of Use  Xhtml 1.0  CSS 2.0