How to get star query optimization in SQL Server 2005 - sql-server-2005

I have a star schema but SQL Server 2005 always uses the clustered indexes to access a table. What parameters do I have to set to enable this optimization.
According to http://blogs.msdn.com/sqlqueryprocessing/archive/2007/04/09/how-to-check-whether-the-final-query-plan-is-optimized-for-star-join.aspx and the DWH datasheet of SQL Server 2005 both claim, that SQL Server 2005 support this feature.

What edition do you use? IIRC star query optimization is ONLY in the enterprise version of SQL Server 2005.

Related

Is IS_ROLEMEMBER available in SQL Server 2012 or 2008R2

Are these functions available in SQL Server 2012 or older?
select IS_ROLEMEMBER ('db_owner');
select IS_SRVROLEMEMBER ('sysadmin');
I can not find any compatibility information in the online documentation here: https://learn.microsoft.com/en-us/sql/t-sql/functions/is-rolemember-transact-sql?view=sql-server-ver15
Is_RoleMember was introduced in SQL Server 2012.
Is_SrvRoleMember was introduced in SQL Server 2005 itself.
You can see when a particular feature was introduced by going through below links. These changes are coming under Database Engine Enhancements => Database Engine Security Enhancements
What is New in SQL 2005
What is New in SQL 2012
To see all the historical information about SQL Server versions, below link is very helpful: https://www.sqlshack.com/history-sql-server-evolution-sql-server-features/

How to export SQL Server 2005 tables to SQL Server Compact database

I don't know if this is a newbie question or not, I want to export some tables from "full" SQL Server 2005 database to a SQL Server Compact Edition database through a CLR stored procedure.
I know it is possible through SSIS.
This article shows how to migrate between sql server and sql server compact using SQL Server Compact Toolbox. so you can use the sql server compact script generated from your database to create CLR stored procdure

Sql 2000 database to Sql 2005 express db

I have a database that is on a SQL 2000 server, and I would like to make it a Sql 2005 express edition database.
What is needed to do in order to make that work?
/M
The cleanest way would be to create a new database in SQL 2005 and import all the objects in.
You can also backup and restore into the SQL 2005 environment. That will work as well

T-SQL - create partition function and scheme - SQL Server 2008

I am creating partition function and schemes.
In SQL Server 2008, it only defines range partitioning and not list partitions.
Dont we have list partitioning in SQL Server?
I am using SQL Server 2008 Enterprise edition.
There is no List Partitioning in SQL Server 2008. But you can fake it into creating one using the LEFT clause.
Read up here:
http://www.sqlservercentral.com/articles/partition/64740/

SQL Server 2000 vs SQL Server 2008 Query Performance

I'm working with a client who had a SQL Server 2008 converted from a SQL Server 2000 DB and one of the queries has quite dramatically increased in time since it was on SQL Server 2000.
However, if I change the compatibility level to 2008 in the DB, the query goes like a rocket (40-50 times faster).
The query does use a number of UDFs.
My questions:
- are there issues with running SQL2000 compatibility in SQL Server 2008
- has SQL Server 2008 improved the performance when using UDFs?
There are some other things you might want to do after upgrading. See the "After upgrading..." section here: http://msdn.microsoft.com/en-us/library/bb933942.aspx