MS SQL Server
  Home arrow MS SQL Server arrow Page 4 - SQL Server 2005 Introduction to SQL Server...
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  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
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

SQL Server 2005 Introduction to SQL Server Management Studio
By: MSDN Virtual Labs
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 23
    2006-01-12

    Table of Contents:
  • SQL Server 2005 Introduction to SQL Server Management Studio
  • Exercise 1: Exploring the Environment
  • Exercise 2: Attaching a Database
  • Exercise 3: Exploring an Existing Database
  • Exercise 4: Creating a New Database
  • Exercise 5: Setting up Database Access

  • 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


    SQL Server 2005 Introduction to SQL Server Management Studio - Exercise 3: Exploring an Existing Database


    (Page 4 of 6 )

    Scenario
    In this exercise, you will use the options available in the SQL Server Management Studio to discover table and procedure definitions. You will also use the Management Studio’s query tool to execute basic SQL commands to examine table data.

            TASKS                             DETAILED STEPS

    1. Examine the properties of the AdventureWorks database.
       
        1. Expand the Databases folder in the Object Explorer window and right-click on the AdventureWorks database.
        2. Click Properties. Note that the Properties dialog box is non-modal and has its own button in the taskbar. You saw the value for several properties in Exercise 2 when you executed the DatabaseProperties.sql script.
        3. Click on each of the categories in the left pane to see what properties are read-only and which are updateable.
        4. Click Cancel to close the Database Properties window. You may have to double click the title bar to see the Cancel button.
    2. Write a query to examine some data.

      NOTE: Even though the GO is not necessary for SQL Server to execute the queries, or for you to select and run individual batches, using GO is the only way that the query tool knows how to separate the batches.
       
        1. In the Solution Explorer window, expand the Exercise 3 node, and double-click the GroupBy.sql file. This adds the following SQL to the query window:

          USE AdventureWorks
          GO

          SELECT City, StateProvinceID, CustomerCount = count(*)
          FROM Person.Address
          GROUP BY City, StateProvinceID
          HAVING count(*) > 1
          ORDER BY count(*) DESC
          GO
        2. Select the query you just entered, and then press F5 or click the Execute button on the toolbar to execute the query.

    More MS SQL Server Articles
    More By MSDN Virtual Labs


       · We hope you found this article from MSDN Virtual Labs to be enjoyable and...
       · Where are the projects for the SQL labs?Select C:\SQL Labs\Lab...
       · Access Virtual Labs online at microsoft.com -> Learning -> Virtual Labs on MSDN
     

    MS SQL SERVER ARTICLES

    - Windows Server 2008 as a Workstation OS
    - An Overview of Windows Server 2008 R2
    - LINQ to MySQL, Oracle and PostgreSQL Provide...
    - 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





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek