Archive
Save not permitted in SQL Server 2008 – Management Studio
Tools -> Options -> Designers, and uncheck the option “Prevent saving changes that require table re-creation”.
PIVOT queries in SQL Server 2005 / 2008
SQL Server PIVOT operator allows you to rotate row level data into tabular data without the use of the CASE statement. With the PIVOT operator in SQL Server, the CASE statement and GROUP BY statements are no longer necessary. (Every PIVOT query involves an aggregation of some type, so you can omit the GROUP BY statement.) The PIVOT operator provides the same functionality that we tried to achieve with the CASE statement query, but you can achieve it through less code, and it is a bit more pleasing on your eyes.
Small sample with case:
SELECT CAST(YEAR(SaleDate) AS VARCHAR(4)) AS SaleDate, SUM(CASE WHEN Product = 'BigScreen' THEN SalePrice END) AS BigScreen, SUM(CASE WHEN Product = 'PoolTable' THEN SalePrice END) AS PoolTable, SUM(CASE WHEN Product = 'Computer' THEN SalePrice END) AS Computer FROM SalesHistory GROUP BY CAST(YEAR(SaleDate) AS VARCHAR(4))
Same result with the PIVOT operator
SELECT SaleDate, BigScreen, PoolTable, ComputerFROM( SELECT CAST(YEAR(SaleDate) AS VARCHAR(4)) AS SaleDate, SalePrice,Product FROM SalesHistory ) AS rfPIVOT( SUM(SalePrice) FOR Product IN(BigScreen, PoolTable, Computer) ) AS p
Very nice to use in an ETL process.
From http://articles.techrepublic.com.com/5100-10878_11-6143761.html
Cumulative update package 1 for SQL Server 2008
Microsoft has the first for SQL Server 2008 cumulative update package. Among other issues, it fixes SSAS and SSRS bugs .
A must install fot everybody !
SQL Server 2008 Hits the Market!
REDMOND, Wash. — Aug. 6, 2008 — Microsoft Corp. today announced the release to manufacturing of Microsoft SQL Server 2008, the new version of the company’s acclaimed data management and business intelligence platform. This version of SQL Server provides powerful new capabilities such as support for policy-based management, auditing, large-scale data warehousing, geospatial data, and advanced reporting and analysis services. SQL Server 2008 provides the trusted, productive and intelligent platform necessary for business-critical applications.
“Microsoft developed this release of SQL Server with the customer in mind,” said Ted Kummert, corporate vice president of the Data and Storage Platform Division at Microsoft. “SQL Server 2008 is the only major database that includes comprehensive, tightly integrated functionality for data management as well as advanced business intelligence out of the box. By offering a complete solution, we save customers time and money and allow them to focus on deriving the most value from their data assets.”
More info see:
http://www.microsoft.com/presspass/press/2008/aug08/08-06SQLServer2008PR.mspx
http://blogs.msdn.com/bi/archive/2008/08/06/sql-server-2008-hits-the-market.aspx
SQL Server 2008 Available on August Price List
SQL Server 2008 Release Candidate 0 (RC0)
MSDN subscribers: Download SQL Server 2008 RC0
TechNet Plus subscribers: Download SQL Server 2008 RC0
.Key SSRS improvements in this build:
- Rich text formatting. You can now format the text inside a textbox with different styles.
- Report Wizard to let the user auto-generate the report definition.
- Fully functional MDX Query Designer.
- An updated build of the Report Builder 2.0 (aka Report Designer Preview) will be available via a web download. The URL link is not known at this point.
Future reporting with Dundas (SQL Server 2008)
