Database
  Home arrow Database arrow Page 2 - Creating a Database Project in VS 2005
Iron Speed
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 
Download TestComplete 
Windows Web Hosting
 
IBM® developerWorks 
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? 
DATABASE

Creating a Database Project in VS 2005
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 10
    2006-07-10

    Table of Contents:
  • Creating a Database Project in VS 2005
  • Creating a new reference database
  • Creating a new query
  • The Query Editor

  • 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
     
     
    Iron Speed
     
    ADVERTISEMENT

    Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    Creating a Database Project in VS 2005 - Creating a new reference database
    (Page 2 of 4 )

    Instead of using the existing references, let's add a new reference. The new reference will be working with a Microsoft Access database on a remote server. The database MDB file is on another machine, XPHTEK. Click on the Add New Reference... button. This opens up the window shown next, with SQLClient as the default datasource. SQL Client is good for SQL 2005 server, but is not for an MS Access Jet Database.

    Click on the Change... button. This opens up the  window Change Data Source with MS SQL Server as the default. Change it to Microsoft Access Database File and click OK.

    The wizard then opens the New Database Reference window, where you need to locate your mdb file. Click on Browse to locate the mdb file. It first opens the C:My Documents folder.

    You navigate through your folders on your machine and locate the shared drive which points to the nwind.mdb file on a network share as shown.

    Click on the button Open which takes you back to the New Database Reference window, now showing the Database File Name: C:HtekSharenwind.mdb. You may test the connection as no password is needed. Click OK and you will have created a new reference; the Add Database Reference window shows up again, as shown, and now includes the newly added reference.

    Click OK to this. The TestoleDb project will now appear in the solution explorer as shown. It also shows the folder structure. It has three folders, Change Scripts, Create Scripts, Queries and the database reference you added recently to the Database References directory.

    More Database Articles
    More By Jayaram Krishnaswamy


       · VS Studio based database projects provide scripted templates for all occasions from...
     

    DATABASE ARTICLES

    - Database Programming in C# with MySQL : Usin...
    - Formatting Techniques for Data Access from E...
    - Data Access from Excel VBA
    - Generating a Multiple Table Crystal Report u...
    - ADO and the Command Object
    - On Wiring Up an ADO Data Control
    - Reading and Writing to Files on the Intranet
    - Using ADO Record to Create and Navigate Intr...
    - Using Data Access Pages to Access Data on a ...
    - Using ADO with the SQL Native Client
    - ADO`s Stream Object
    - Opening a Record Object Referencing an Open ...
    - Introducing Jasper (SQL Anywhere 10 Beta)
    - Creating a Database Project in VS 2005
    - Manipulating ADO Recordsets




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