This SQL command is not working with SQL server 2005.
What would be the alternative to this SQL command for SQL Server.