AboutSQL Server, Analytics, .Net, Machine Learning, R, Python Archives
About Me
Mitch Wheat has been working as a professional programmer since 1984, graduating with a honours degree in Mathematics from Warwick University, UK in 1986. He moved to Perth in 1995, having worked in software houses in London and Rotterdam. He has worked in the areas of mining, electronics, research, defence, financial, GIS, telecommunications, engineering, and information management. Mitch has worked mainly with Microsoft technologies (since Windows version 3.0) but has also used UNIX. He holds the following Microsoft certifications: MCPD (Web and Windows) using C# and SQL Server MCITP (Admin and Developer). His preferred development environment is C#, .Net Framework and SQL Server. Mitch has worked as an independent consultant for the last 10 years, and is currently involved with helping teams improve their Software Development Life Cycle. His areas of special interest lie in performance tuning |
Thursday, July 14, 2011Fixing Slow SQL Server Management Objects (SMO) PerformanceJust recently I’ve been converting a small utility that uses SQL-DMO to use SQL-SMO instead (SQL-DMO is deprecated in SQL Server 2008 R2; if you really need to use it, install the Backward Compatibility Components from the SQL Server 2008 Feature Pack from the Microsoft Download Centre). Remembering all those posts saying how slow SMO was compared to DMO, a colleague mentioned this:
Server server = new Server(); To build an SMO application, you need to reference the SMO assemblies. Click ‘Add Reference’ and navigate to the folder
Add references to:
(These are the minimum files that are required to build an SMO application) Ref.: How to: Create a Visual C# SMO Project in Visual Studio .NET 1 Comments:A useful tip . have you checked to see how Powershell exploits SMO. I'd like to hear your feedback on : http://www.sqlserver-dba.com/2011/06/powershell-for-sql-smo.html By Jack Vamvas, at July 18, 2011 4:51 pm << Home |
ContactMSN, Email: mitch døt wheat at gmail.com LinksFavorites
Blogs |