Archive for July, 2007

Monitoring di SQL Server

Posted on the July 23rd, 2007 under .NET,Development Life by Marco Trova

Ho trovato due utility per fare monitoring di SQL Server.

Uno è SQL Spy, una specie di management studio grtuito orientato a controllare lo stato del server, dell’utilizzo delle CPU, Profiling delle qury attualmente eseguite, connessioni, ecc.

L’altro è RSSReporter, che utilizza un feed RSS per pubblicare le statistiche di sql, gratuito per un server.

Utili entrambi.

ReportViewer Components e Visual Studio SP1

Posted on the July 21st, 2007 under .NET,Development Life by Marco Trova

Solo recentemente ho scoperto questo controllo. Ho trovato sì un diverso modo di fare reports (a chi piace?), ma anche una versatilità che non avevo mai trovato negli strumenti di reportistica standard di Microsoft.

Lo strumento di riferimento è sempre stato Microsoft Access: tutti ne hanno copiato la semplicità ed immediatezza. In VB5/6 avevamo l’odiato Crystal Reports che solo dopo l’acquisizione da parte di Business Objects era diventato usabile e produttivo (credo dalla versione 9).

Una buona alternativa è stata per alcuni anni ActiveReports aveva anche un wizard d’importazione da Access e potevi “compilare” i reports con la tua applicazione (a volte un vantaggio altre un limite). Oggi anche DataDynamics offre un engine per reports basato su RDL.

Poi sono arrivati i Reporting Services, con l’ulteriore consolidamento con l’uscita di SQL Server 2005.

Penso che utilizzerò esclusivamente il ReportViewer ed i Reporting Services in futuro.

Da notare quel che Scott scrive:

ReportViewer Components and Visual Studio SP1

The ReportViewer components in Visual Studio 2005 can display and export reports. The report definitions can be local .rdlc files, or remote files hosted and rendered by SQL Server Reporting Services. There are components available for both web and Windows applications.

A couple notes:

These components are not part of the .NET framework, so you need to install a redistributable package on the machines where the components will execute. The installation package will GAC the four assemblies required by the ReportViewer components.

More importantly:

Microsoft did update the ReportViewer components in SP1 for Visual Studio, but did not update the redistributable package. To synch test and prod machines with development, you’ll need to download updates from the links in this article: FIX: The Report Viewer 2005 Service Pack 1 Redistributable Package is available.