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  
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? 
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 / 72
    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

    - Adding Content to a Static ASP.NET Website
    - Building a Static ASP.NET Website in a Basic...
    - Develop Your First ASP.NET Website with Visu...
    - Run ASP.NET in Windows XP Home with Cassini ...
    - How to Test a Web Application
    - How to Add Code and Validation Controls to a...
    - Working in Source and Split Views to Build a...
    - How to Build a Web Form for a One-Page Web A...
    - How to Develop a One-Page Web Application
    - An ASP.NET Web Application in Action
    - Developing ASP.NET Web Applications
    - An Introduction to ASP.NET Web Programming
    - Introduction to the ADO.NET Entity Framework...
    - Completing an In-Text Advertising System und...
    - Programming an In-Text Advertising System un...





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