ASP.NET
  Home arrow ASP.NET arrow Page 2 - Introducing ASP.NET 2.0 with Visual Studio...
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 
Mobile Linux 
App Generation ROI 
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? 
ASP.NET

Introducing ASP.NET 2.0 with Visual Studio 2005
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 68
    2006-01-23

    Table of Contents:
  • Introducing ASP.NET 2.0 with Visual Studio 2005
  • Connecting to the Database using the Visual Studio 2005 “Server Explorer” Window
  • Working with Tables and the New “Grid View” Control
  • Creating Data Diagrams and Views using the Visual Studio 2005 “Server Explorer” Window

  • 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


    Introducing ASP.NET 2.0 with Visual Studio 2005 - Connecting to the Database using the Visual Studio 2005 “Server Explorer” Window


    (Page 2 of 4 )

    After creating the web application (as in the previous section), we will now concentrate on database design using Visual Studio 2005 Integrated Development Environment. Microsoft provides a tool window in Visual Studio 2005 IDE called the “Server Explorer” (which is very similar to the tool window available in Visual Studio.NET 2003).  “Server Explorer” is a management console for any server (or system) and is used to open databases, manage and control the data of different databases, manage system services, and so on.

    Microsoft provided flexibility to programmers, so that they will use this window to play with the database from within the same IDE and feel comfortable with going through (or managing) all the database objects like tables, procedures, views, and so forth when they are implementing code.

    Whenever you start your page, by default you will see Server Explorer on the screen. If you are unable to find the “Server Explorer” Window, just go to View -> Server Explorer.  Once Server Explorer is on the screen, select “Data Connections” and right click on it. You will have two options now:  “Add Connection” and “Create New SQL Server Database.”

    Connecting to Existing Databases

    Once you click on “Add Connection” (in the right click menu), the Data source window gets displayed (Fig 2).  Go through the following paragraphs to provide the details for the database.

    In Figure2 we can go through each and every option in detail as follows:

    Server Name: Provide the database Instance name as Server Name with the required path.  If the database resides with in the same system, then we can mention it as “.” (which means “local”). By default, SQL Server 2005 Express edition is automatically installed when the Visual Studio 2005 product is installed. If not, we have to provide the instance name exactly (we can also provide <IP address>\<Instance>).

    Log on to the Server: If your SQL installation is based on “Windows Only” authentication, select “Windows Authentication.” If your installation supports “Mixed authentication,” you can provide “username” and “password.”

    Select or Enter database name: If the above information is perfect, then you will be able to see all the databases that are available on that particular database instance. Select the required database name from the dropdown list.

    Finally, click “ok.”  You can also test the database connection using “Test Connection” button.

    Creating New Databases

    The second way of connecting databases is by creating a new database itself from Server Explorer. Here it will ask for Server Name, Authentication and Database Name (Fig 3).

    Provide values accordingly. It creates a new database, and adds it to the server explorer.

    More ASP.NET Articles
    More By Jagadish Chaterjee


       · Hello guys, you can find the basics of ASP.NET 2.0 with Visual Studio 2005 here. Do...
       · Thanks! Your article is clear and easy to grasp! Write more :)Yobo!
       · Hi,thanks for your compliments. I am already on the way to contribute huge number...
       · Hi thks for such a gud article...
       · This is a really good article and authours tried to make undertsand the differences...
     

    ASP.NET ARTICLES

    - Developing a Mini ASP.NET AJAX Server Centri...
    - Disadvantages of the ASP.NET MVC Framework
    - Advantages of the ASP.NET MVC Approach
    - ASP.NET Web Forms Weaknesses
    - ASP.NET Web Forms Meets ASP.NET MVC
    - Source Code for Saving and Retrieving Data w...
    - Using GridView to Save and Retrieve Data wit...
    - Handling Dynamic Images in ASP.NET 3.5 AJAX ...
    - Retrieving Data with AJAX and the GridView C...
    - Playing with Images in ASP.NET 3.5 AJAX Appl...
    - Saving and Retrieving Data with AJAX
    - Enhancing PHP Via the ASP.NET AJAX Framework...
    - Enhancing PHP Programming with the ASP.NET A...
    - Classes and ASP.NET AJAX
    - Using ASP.NET AJAX

     
    Best Practices for Windows Vista Migration Presentation
    Dell and Microsoft recently held a series of face-to-face seminars entitled, &qu....

     
    Creating a Culture for Code Reuse
    If you oversee development teams you know that like it or not proprietary and ex....

     
    Keys to Web Application Acceleration: Advances in Delivery Systems
    Accelerate Web apps by up to 5x. Ensure significantly faster access to the Web a....

     
    Optimizing Application Monitoring
    Tired of finding out from your customers that you're offline? This white paper e....

     
    Solaris to Solaris Migration -- Migrating applications from Sun SPARC to Dell PowerEdge R900
    This comprehensive Migration Guide reviews the approach that Principled Technolo....

     




    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
    Stay green...Green IT