SunQuest
 
       MS SQL Server
  Home arrow MS SQL Server arrow Querying Databases in SQL Server 2005
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
VeriSign Whitepapers 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MS SQL SERVER

Querying Databases in SQL Server 2005
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 31
    2006-03-22

    Table of Contents:
  • Querying Databases in SQL Server 2005
  • Creating a Query
  • The Execution Plan
  • XML Queries, a Comparison

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Querying Databases in SQL Server 2005


    (Page 1 of 4 )

    This hands-on tutorial should help you in understanding the interface available for querying the SQL Server 2005 databases. Some of the major features will be discussed as related to their use rather than going into a lot of details. Querying the database is one of the most basic activities that is routinely and frequently performed.

    SQL Server 2000

    In SQL Server 2000, the Query Analyzer provided excellent support for all database-related programming. However, the Query Analyzer was separate from the Enterprise Manager. Further, the Enterprise Manager had its own querying interface common to many other Microsoft products like Visual Interdev, VS 2003, and so on. Also, SQL queries could be run from the command line in the DOS screen using ISQL and OSQL utilities, although ISQL was on its way out. SQL Server 2005 shows excellent integration of all these different features into one master dashboard, the Microsoft SQL Server Management Studio as seen in Fig.1.  Also, while Query Analyzer always demanded a login by the machine owner, with Windows Login, the Enterprise Manager generally did not.

    Fig.1

    SQL Server 2005

    In SQL server 2005, the Query Analyzer and Enterprise Manager are integrated in the Microsoft SQL Server Management Studio (which will be called the Studio in this tutorial). When you connect to the Server, you will be connecting to both utilities. The OSQL is still retained in the Studio, but will not be supported in future versions; it is included in this version for backward compatibility only. The recommended utility to use is SQLCMD, which can be run in the Studio. You can run SQLCMD without accessing the DOS screen; in this case it uses a Microsoft .NET SQLClient.  SQLCMD can also be run side by side with OSQL in the command line when it uses an OleDb driver.

    More MS SQL Server Articles
    More By Jayaram Krishnaswamy


       · A new major version is like entering a new territory. You start discovering new...
     

    MS SQL SERVER ARTICLES

    - Completing the Introduction to Transact-SQL
    - A Brief Introduction to Transact-SQL
    - Lookups and Blocking Bad Data
    - Field Validation Rules for Blocking Bad Data
    - Using Masks to Block Bad Data
    - Blocking Bad Data
    - Using @@ROWCOUNT and TABLE Variables for Dat...
    - How to Use Variables, IF and CASE in Databas...
    - Creating Important Aspects of Notification S...
    - Working wth Variables in Database Interactio...
    - Delving Deeper into Notification Services
    - Notification Services
    - Building a Multi-table Report with SQL 2005 ...
    - A Secure Way of Building Connection Strings
    - Transferring a Database Using the SSIS Desig...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway