How do I connect to SQL Server using Visual Studio .NET?

Visual Studio .NET 2002 includes a built in database management tool (similar to Microsoft Enterprise Manager).

The following functions are available with this tool.

  • Retrieve and edit data
  • Create tables, views, and stored procedures (Enterprise & Architect Version only)

To connect to your Microsoft SQL Server database with Visual Studio .NET, follow the steps listed below :

  1. Open Server Explorer. (View -> Server Explorer)
  2. The Server Explorer should show up on the left hand side of the IDE.
  3. Right click on "Data Connections" and select "Add Connection".
  4. Enter the Server Name in the first textbox (do not use the drop down box). MS SQL Server name can be found in the MS SQL server section of the control panel.
  5. Check "Use a specific user name and password :"
  6. Enter your SQL username & password.
  7. Select your database from the dropdown list.
  8. Click "Ok"
  9. Once connected, you should see a new entry in the Data Connections Section.
  • 29 Корисниците го најдоа ова како корисно
Дали Ви помогна овој одговор?

Понудени резултати

How do I deploy a Visual Studio .NET web project from my local computer to your server?

The information in this article applies to : Visual Studio .NET 2002 Visual Studio .NET 2003...

Do you support remote debugging?

Unfortunately we do not support remote debugging. Please review the reasons listed below to...

How do I create a new web project with Visual Studio .NET?

To create a new web project with your SeekDotNet hosting account, follow the steps listed below :...

Visual Studio .NET 2003 reports that the webserver does not have ASP.NET version 1.1 installed

Following error is displayed when trying to upload with VS.net 2003 "Visual Studio .NET has...

How do I open an existing project on your server?

To open a Visual Studio .NET project from your SeekDotNet hosting account,...