Identificare sequenze all'interno di sequenze
Articolo in due parti di Itzik Ben-Gan che analizza in dettaglio diverse tecniche per identificare sequenze all’interno di altre sequenze in T-SQL.
Articolo in due parti di Itzik Ben-Gan che analizza in dettaglio diverse tecniche per identificare sequenze all’interno di altre sequenze in T-SQL.
Microsoft Virtual Accademy ha pubblicato un bel webcast fatto da Itzik Ben-Gan dedicato all’uso dell’operatore APPLY, estremamente potente e tipicamente poco utilizzato. Di seguito il link:
“Boost Your T-SQL with the APPLY Operator”
Need creative solutions to T-SQL issues? Get them from Itzik Ben-Gan, one of the world’s foremost authorities, along with Microsoft Program Manager Umachandar Jayachandran. These experts demonstrate the APPLY operator, a T-SQL feature that can be used to solve a wide variety of problems. What’s especially interesting about APPLY is how it can be used in conjunction with many T-SQL features. To demonstrate this aspect of APPLY, the session tracks the operator through time, discussing features that were initially introduced in different versions of SQL Server (7.0, like TOP, through 2012, like OFFSET-FETCH), some of which are widely used today. For each feature, the session describes its shortcomings and then shows how to use APPLY to overcome it and to improve the feature.
Steve Swartz, Group Program Manager SSIS Team, in una delle sessioni che ha tenuto al TechEd Europe 2010 ha parlato di SSIS Tips & Tricks.
Se state lavorando a un nuovo progetto con SQL Server Integration Services o se dovete migliorare le performance di un progetto (insieme di package) esistente, ma non avete tempo a sufficienza o risorse economiche per iniziare da zero il tuning delle performance, vi consiglio di investire 60 minuti guardando questo webcast.
A volte può capitare di dover collegare tra loro più resultset, ad esempio tramite il component Merge Join. Alcune trasformazioni necessitano di ricevere set di input ORDINATI. Quando questi input sono considerati ordinati? SSIS riesce a comprenderlo tramite una proprietà: IsSorted.
Vediamo come creare codice SQL al volo (quindi senza apportare alcuna modifica “reale” alla base dati) utilizzando le potenzialità di generazione degli script fornita da SMO:
Non dimentichiamoci degli imports …
Imports Microsoft.SqlServer.Management.Smo
Imports Microsoft.SqlServer.Management.Common
Ci colleghiamo al server di nostro interesse …