Discontinued or Deprecated Features in SQL Server 2005

Today I would like to list a few discontinued or deprecated features in SQL Server 2005. For a complete list, please check out SQL Server 2005 Database Engine Backward Compatibility.

FEATURES DEPRECIATED IN SQL SERVER 2005

Deprecated features include features that will not be supported in the next version of SQL Server and features that will not be supported in a future version of SQL Server.

 
    Old                           SQL 2005
    ------------------------      -----------------------------------------------------------
    sp_attach_db                  CREATE DATABASE statement with the FOR ATTACH option; 
                                  to rebuild multiple log files, when one or more have a new 
                                  location, use the FOR ATTACH_REBUILD_LOG option

    sp_renamedb                   MODIFY NAME option of ALTER DATABASE
                                  
    xp_addextendedproc            None. Use CLR instead
    xp_dropextendedproc
    xp_helpextendedproc
     
    dbcc dbreindex                REBUILD option of ALTER INDEX
    dbcc indexdefrag              REORGANIZE option of ALTER INDEX

    dbcc showcontig               sys.dm_db_index_physical_stats  (dynamic management view)

    syscacheobjects               sys.dm_exec_cached_plans        (dynamic management view)
                                  sys.dm_exec_plan_attributes     (dynamic management view)
                                  sys.dm_exec_sql_text            (dynamic management view)
                                  
    sysprocesses                  sys.dm_exec_connections         (dynamic management view)
                                  sys.dm_exec_sessions            (dynamic management view)
                                  sys.dm_exec_requests            (dynamic management view)
                                  
    syslockinfo                   sys.dm_tran_locks               (dynamic management view)
    sp_lock          

    sysdatabases                  sys.databases               (catalog view)
    syslogins                     sys.server_principals       (catalog view)
    sysobjects                    sys.objects                 (catalog view)

    sysindexes                    sys.indexes                 (catalog view)
                                  sys.partitions              (catalog view)
                                  sys.allocation_units        (catalog view)
                                  sys.dm_db_partition_stats   (dynamic management view)

    setuser                       EXECUTE AS
    fn_get_sql                    sys.dm_exec_sql_text

FEATURES DISCONTINUED SQL SERVER 2005

    Old                           SQL 2005
    -------------------------     -----------------------------------------------------------
    isql utility                  sqlcmd
    osql                          Supported, but depreciated  

    'allow updates' option        Option is present but direct updates to system tables are 
    of sp_configure.              not supported

    DBCC PINTABLE,                None
    DBCC UNPINTABLE               

    syslocks                      sys.dm_tran_locks

    *= and =* outer join          Use the JOIN syntax of the FROM clause

    Multiple table hints          Must be specified in paranthesis using the WITH keyword 

                                  Correct:  
                                  SELECT * FROM employee WITH (NOLOCK, INDEX(IX_Key))

                                  Single hints still work without WITH keyword
                                  SELECT * FROM employee (NOLOCK)

    Rebuildm.exe                  Use the REBUILDDATABASE option in Setup.exe                               

See also

  • SQL: Use Dynamic SQL Query Correctly
  • SQL 2005: Use DMV and CROSS APPLY to Get Cached Plans
  • SQL 2005: Discontinued or Deprecated Features in SQL Server 2005
  • SQL 2005: Default Trace Enabled Option
  • SQL 2005: Column Level Permissions
  • SQL 2005: SQLCMD Supports Parameterized Variables and Macro Features
  • SQL 2005: DTS Has Become SSIS now
  • SQL 2005: Microsoft SQL Server 2005 JDBC Driver
  • SQL 2005: Query Notifications in ADO.Net 2.0
  • SQL 2005: Overcome SQL Index Size Limit
  • SQL 2005: DDL Triggers
  • SQL 2005: Why Should Use 64 Bit Now
  • SQL 2005: How to Rebuild The Master Database
  • SQL 2005: A Little Trick to Install SQL 2005 Onto Your Dirty DEV Machine
  • SQL 2005: New Resource Database
  • SQL 2005: Alter Index Rebuild
  • SQL 2005: XQuery Sample
  • SQL 2005: How to Move Database
  • SQL: Use COALESCE to Generate a List
  • SQL: How to Debug SQL Deadlocks
  • .Net: How to Bypass Strong Name Check
  • Agile: Lean Software Development - An Agile Toolkit
  • ORM: How to Use nHibernate 1.2 to Call Stored Procedure to Return a Dataset Without a Mapping Entity
  • AJAX: ASP.NET AJAX Tips
  • .Net: Debugging Commands
  • .Net: How to Run NUnit And Debug Your Test Fixtures Directly from VS 2005
  • .Net: How to Add Domain User to Local Group
  • .Net: Lock Value Type?
  • .Net: How to Create an Instance of a Generic Type with Parameters
  • .Net: How to Get Address of a Managed Type
  • ORM: New Features of nHibernate 1.2
  • .Net: How to Get System Error Message from HRESULT in Managed Code
  • .Net: Use Windows PowerShell Now
  • WMI: Use WMI to Run Commands on Remote Machine
  • API: GetLogicalProcessorInformation to Detect CPUs
  • .Net: How to Implement Singleton Correctly
  • .Net: There is no MTS object context (Exception from HRESULT: 0x8004E004)
  • .Net: The Net Objectives Pattern Repository
  • Web: Access Denied When ASP.Net Accesses Eventlog
  • Nant: Error Loading GUID of Project
  • AJAX: Ajax in Action
  • DTC: DtcGetTransactionManager Fails
  • .Net: Run .Net 1.1 COM+ Serviced Components Under .Net 2.0 Framework
  • .Net: Debugging Managed Code Tip
  • .Net: Assembly Binding Log Viewer (Fuslogvw.exe)
  • .Net: .Net Framework Design Guidelines
  • .Net: Use Global Catalog and CheckTokenMembership to Check AD Group Membership



  • THIS POST IS PROVIDED "AS-IS" WITH NO WARRANTIES AND CONFERS NO RIGHTS. Build time: Sun 03/30/2008 . ©2007 Dalun Software. All rights reserved. Back to Article List