La nuova release di Sql Server avrà due nuove edizioni “Premium”, la Datacenter e la Parallel Data Warehouse.
Trovate una breve descrizione di seguito :
Datacenter
Built on SQL Server 2008 R2 Enterprise, SQL Server 2008 R2 Datacenter is designed to deliver a high-performing data platform that provides the highest levels of scalability for large application workloads, virtualization and consolidation, and management for an organization’s database infrastructure. Datacenter helps enable organizations to cost effectively scale their mission-critical environment.
Key features new to Datacenter:
-
Application and Multi-Server Management for enrolling, gaining insights and managing over 25 instances
-
Highest virtualization support for maximum ROI on consolidation and virtualization
-
High-scale complex event processing with SQL Server StreamInsight
-
Supports more than 8 processors and up to 256 logical processors for highest levels of scale
-
Supports memory limits up to OS maximum
Parallel Data Warehouse
SQL Server 2008 R2 Parallel Data Warehouse is a highly scalable data warehouse appliance-based solution. Parallel Data Warehouse delivers performance at low cost through a massively parallel processing (MPP) architecture and compatibility with hardware partners – scale your data warehouse from tens and hundreds of terabytes to the petabyte range.
Key features new to Parallel Data Warehouse:
-
10s to 100s TBs to 1+ PB enabled by MPP architecture
-
Advanced data warehousing capabilities like Star Join Queries and Change Data Capture
-
Integration with SSIS, SSRS, and SSAS
-
Supports industry standard data warehousing hub and spoke architecture and parallel database copy
Informazioni aggiuntive :
http://www.microsoft.com/sqlserver/2008/en/us/R2-editions.aspx
http://www.microsoft.com/presspass/press/2009/nov09/11-03PASS09PR.mspx?rss_fdn=Press%20Releases
Una delle novità presenti in Windows Server 2008 R2 è la possibilità di creare i Managed Service Accounts. Questi possono essere utili anche per l’esecuzione delle istanze di Sql Server.
Cosa sono ?
Sono degli account di dominio che permettono di evitare la gestione manuale della password e del Service Principal Name (SPN).
Come è possibile crearli ?
E’ possibile crearli via powershell, una volta fatto l’account sarà disponibile per l’associazione all’istanza di Sql Server
Ci sono delle limitazioni ?
Non possono essere condivisi tra più computer e non possono essere utilizzati per clusterizzare servizi che prevedono il failover.
Risorse aggiuntive
http://technet.microsoft.com/en-us/library/dd367859(WS.10).aspx
Come creare un Managed Service Account : http://technet.microsoft.com/en-us/library/dd391964(WS.10).aspx
Come installare un Managed Service Account : http://technet.microsoft.com/en-us/library/dd378855(WS.10).aspx
Una guida Step by Step : http://technet.microsoft.com/en-us/library/dd548356(WS.10).aspx
Sono disponibili per MySql, Oracle, Informix, Sybase ASA, Sybase ASE a questo link.
Informazioni aggiuntive :
Guide to Migrating from MySQL to SQL Server 2008
In this migration guide you will learn the differences between the MySQL and SQL Server 2008 database platforms, and the steps necessary to convert a MySQL database to SQL Server.
Guide to Migrating from Oracle to SQL Server 2008
This white paper explores challenges that arise when you migrate from an Oracle 7.3 database or later to SQL Server 2008. It describes the implementation differences of database objects, SQL dialects, and procedural code between the two platforms. The entire migration process using SQL Server Migration Assistant (SSMA) 2008 for Oracle is explained in depth, with a special focus on converting database objects and PL/SQL code.
Guide to Migrating from Informix to SQL Server 2008
This white paper explores challenges that arise when you migrate from an Informix 11 database to SQL Server 2008. It describes the implementation differences of database objects and procedural code between the two platforms. Emulation of system functions is also discussed.
Guide to Migrating from Sybase ASA to SQL Server 2008
This white paper explores challenges that arise when you migrate from a Sybase Adaptive Server Anywhere (ASA) database of version 9 or later to SQL Server 2008. It describes the implementation differences of database objects, SQL dialects, and procedural code between the two platforms.
Guide to Migrating from Sybase ASE to SQL Server 2008
This white paper covers known issues for migrating Sybase Adaptive Server Enterprise database to SQL Server 2008. Instructions for handling the differences between the two platforms are included. The paper describes how SQL Server Migration Assistant, the best tool for this type of migration, can help resolve various migration issues.
E’ possibile eseguire la semplice query seguente per recuperare l’informazione.
SELECT S.session_id
FROM sys.tcp_endpoints E JOIN sys.dm_exec_sessions S
ON E.endpoint_id = S.endpoint_id
WHERE E.name = 'Dedicated Admin Connection'
Ricordo che su Sql Server Express Edition è necessario avviare l’istanza con il trace flag 7806 per rendere possibile l’uso delle sessioni DAC.
Ci sono diversi metodi per farlo, come utilizzare la stored procedure sp_helptext, fare una query sulla vista sys.system_sql_modules o una chiamata alla funzione object_definition.
Di seguito un esempio con sys.tables :
-- SP_HELPTEXT
sp_helptext 'sys.tables'
-- OBJECT_DEFINITION
SELECT OBJECT_DEFINITION (object_id('sys.tables'))
-- SYS.SYSTEM_SQL_MODULES (recupero schema_id e object_id dell’oggetto)
SELECT schema_id FROM sys.schemas WHERE name = 'sys'
SELECT object_id FROM sys.system_views WHERE name = 'tables' AND schema_id = 4
SELECT [definition] FROM sys.system_sql_modules WHERE object_id = -386
Per individuare gli utenti orfani (senza un login associato) di un database è possibile utilizzare la stored procedure sp_change_user_login utilizzando il parametro @action ed impostandolo su Report. Di seguito un esempio del database AdventureWorks che ha l’utente Customer3 che non è associato a nessun login sull’istanza:

Per mappare un utente del database ad una login è invece meglio utilizzare l’istruzione T-SQL ALTER USER .
Ho raccolto in questo post i documenti utili nel caso sia necessario rinominare un server standalone che esegue Sql Server o un Virtual Server in caso di configurazioni in Failover Cluster.
NOTA : Sql Server 2000 non supporta questa operazione per i virtual server clustered.
Sql Server 2008 standalone
http://msdn.microsoft.com/en-us/library/ms143799.aspx
Considerazioni :
- SQL Server does not support renaming computers that are involved in replication, except when you use log shipping with replication. The secondary computer in log shipping can be renamed if the primary computer is permanently lost. For more information, see Replication and Log Shipping.
- When you rename a computer that is configured to use Reporting Services, Reporting Services might not be available after the computer name change. For more information, see Renaming a Report Server Computer.
- When you rename a computer that is configured to use database mirroring, you must turn off database mirroring before the renaming operation. Then, re-establish database mirroring with the new computer name. Metadata for database mirroring will not be updated automatically to reflect the new computer name. Use the following steps to update system metadata.
- Users who connect to SQL Server through a Windows group that uses a hard-coded reference to the computer name might not be able to connect to SQL Server. This can occur after the rename if the Windows group specifies the old computer name. To ensure that such Windows groups have SQL Server connectivity following the renaming operation, update the Windows group to specify the new computer name.
Sql Server 2008 cluster
http://msdn.microsoft.com/en-us/library/ms178083.aspx
Considerazioni :
- SQL Server does not support renaming servers involved in replication, except in the case of using log shipping with replication. The secondary server in log shipping can be renamed if the primary server is permanently lost. For more information, see Replication and Log Shipping.
- When renaming a virtual server that is configured to use database mirroring, you must turn off database mirroring before the renaming operation, and then re-establish database mirroring with the new virtual server name. Metadata for database mirroring will not be updated automatically to reflect the new virtual server name.
Sql Server 2005 standalone
http://msdn.microsoft.com/en-us/library/ms143799(SQL.90).aspx
Sql Server 2005 cluster
http://msdn.microsoft.com/en-us/library/ms178083(SQL.90).aspx
Sql Server 2000 standalone
http://msdn.microsoft.com/en-us/library/aa197071(SQL.80).aspx
Sql Server 2000 cluster
http://support.microsoft.com/kb/307336/en-us
renaming the SQL Server virtual, or clustered, servers is not supported in the current version of Microsoft SQL Server. If you rename the SQL Server Network Name resource, a variety of problems may occur
Vi segnalo un white paper sull’utilizzo del Resource Governor, disponibile per il download qui.
Viene spiegato :
- How the Resource Governor works, including limitations and best practices.
- Methods for building a consolidation plan, and testing those methods.
- Techniques for preventing runaway queries, or at least minimizing their impact.
- Approaches to meeting service level agreements (SLAs) driven by response time and concurrency.
- Basic ideas about implementing a chargeback system to recover resource costs.
- Ways to monitor SQL Server using new Resource Governor functionality.
A questo indirizzo potete trovare un white paper molto interessante sul clustering di Sql Server 2008.
Il materiale (slide, demo) è online, potete trovarlo qui.
Sql Server Reporting Services permette la creazione di report tramite diversi strumenti, Report Builder 1.0, Report Builder 2.0, il Report Designer all’interno di Business Intelligence Development Studio.
Ma quale tool è meglio utilizzare ? La risposta è : dipende dall’esigenza e da chi deve fare il report.
Sicuramente Report Builder è uno strumento più adatto all’utente finale, anche se l’ultima versione 2.0 ha introdotto parecchie features aggiuntive che lo avvicinano maggiormente al Report Designer contenuto in BIDS, strumento invece più adatto agli sviluppatori.
A questo link potete trovare una tabella comparativa che mette a confronto i 3 prodotti sopracitati.
Per gli sviluppatori è inoltre possibile utilizzare anche il controllo Report Viewer all’interno dei progetti Visual Studio per integrare direttamente soluzioni di reportistica negli applicativi.
Martedì scorso ho avuto il piacere di tenere una sessione al workshop organizzato da UGISS presso il Politecnico di Torino.
E’ stata davvero una esperienza notevole e l’affluenza è stata a mio parere ottima (circa 80 persone). Tra le altre cose ho potuto conoscere di persona alcuni degli speakers che ancora non conoscevo, come Sergio Govoni, Luca Bovo e Daniele Romagnoli.
Parlare insieme a persone del calibro di Davide Mauri e Marco Russo è sicuramente motivo di soddisfazione e non posso fare altro che ringraziarli per avermi dato questa opportunità.
Tutto è stato organizzato alla perfezione, compresa la visita guidata per le vie del centro di Torino e la cena della sera precedente, della quale pubblico una bella foto :
Da sinistra verso destra : io, Sergio Govoni, Davide Mauri, Luca Bovo, Marco Russo, Andrea Benedetti.
A proposito Andrea, aspettiamo le foto dell’evento visto che per un giorno hai deciso di dedicarti alla fotografia anzichè a Sql Server :)
Tenete d’occhio il sito di UGISS perchè nella sezione download presto troverete tutti i contenuti tecnici relativi all’evento.
Vi segnalo un Virtual Lab di 90 min. sulla protezione di Sql Server con System Center Data Protection Manager 2007 :
http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032407492&EventCategory=3&culture=en-US&CountryCode=US
Vi ricordo anche alcune delle principali caratteristiche di DPM 2007 applicate a Sql Server :
- Enhanced SQL Server 2008 protection, including the addition of new protection capabilities for mirrored databases, support for parallel backups of databases within a single instance, and the ability to move data from SQL Server 2005 to SQL Server 2008 for migration scenarios.
- DPM 2007 offers integrated support for advanced Exchange and SQL cluster configurations, shorter SQL backup windows with out the need for compression, as well as advanced SharePoint data protection options.
- DPM 2007 enables lossless recovery of Exchange, SQL, and SharePoint servers without the need for constant replication or synchronization by seamlessly integrating a point in time database restore with the existing application logs.
- When protecting SQL Servers with “Log Shipping” or “Simple Recovery Model” configurations, DPM auto-configures itself to co‑exist for simple-mode protection where needed.
Per ulteriori informazioni vi rimando ai seguenti riferimenti :
Sito web del prodotto : http://www.microsoft.com/systemcenter/dataprotectionmanager/en/us/product-details.aspx
Un white paper sulla protezione di Sql Server con DPM 2007 : http://download.microsoft.com/download/1/5/3/15343F57-36F4-44A0-B3F7-759812166644/DPM2007sp1_whitepaper_Protecting_SQL_Server_with_DPM2007.pdf
Gli scalable shared databases consentono di effettuare la scalabilità orizzontale di un database in sola lettura da utilizzare per scopi di reportistica.
Scenario
La procedura di configurazione può essere divisa in due macro categorie:
- La fase di creazione, che rappresenta il momento in cui il database dei report viene preparato
- La fase di collegamento, che comporta l’aggancio dei volumi della SAN che contengono il database condiviso ai server di reportistica.
Vantaggi
- Scalabilità orizzontale
- Isolamento del carico di lavoro perchè ogni server di reportistica usa le proprie risorse e il proprio tempdb
- Stessi dati su tutti i server
Aggiornamento di un database condiviso
L’update-cycle di un database condiviso è diviso in tre fasi :
- La fase di detach del database da ognuno dei server di reportistica
- La fase di refresh dei dati
- La fase di attach del database aggiornato ai vari server.
Informazioni utili
Informazioni generali, caratteristiche e limitazioni : http://technet.microsoft.com/en-us/library/ms345392.aspx
Come migliorare la disponibilità di uno scalable shared database : http://technet.microsoft.com/en-us/library/ms345596.aspx
Come creare e aggiornare il database di reportistica : http://technet.microsoft.com/en-us/library/ms345390.aspx
La fase di detach e attach del database.
Il documento 956893 contiene un importante aggiornamento, Sql Server (2005/2008) è ora supportato in configurazioni di Guest Failover Cluster in ambiente virtualizzato. Alcuni dettagli :
Guest Failover Clustering is supported for SQL Server 2005 and SQL Server 2008 in a virtual machine for Windows Server 2008 with Hyper-V, Microsoft Hyper-V Server 2008, and SVVP certified configurations provided both of the following requirements are met: The virtual machine must be running an operating system that is supported for the specific SQL Server version and edition and that is supported for virtualization. The SQL Server product must be a supported version under its current Microsoft Support Lifecycle policy. For more information about Microsoft Support Lifecycle policies, visit the following Microsoft Support Web site: