CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2014
    Posts
    7

    Issues in creating SQL Server Database (on other machine) with C# windows Application

    Hey Guys,

    I have my SQL Server Database on machineX i name that as "OtherMachine"
    I have installed my visual Studio on current machine i name that as "MyMachine".
    I created windows forms on MyMachine and try to connect with Database on "OtherMachine"

    View-->Server Explorer-->Add Connection-->Choose Microsoft SQL Server
    In Add Connection window:
    when i give Server name as

    Scenario1:

    OtherMachine\SQLEXPRESS
    i could not find any database in the dropdown list. i get an error (Provider: SQL Network Interfaces, error:26 - Error Locating Server/Instance Specified)
    But the Database are present in "OtherMachine"

    Scenario2:
    MyMachine\SQLEXPRESS (connecting to local database on MYMachine)
    in dropdown list i get the datbase listed. its successfull.

    Issue: am not able to connect to database on OtherMachine.

    Please assist.

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Issues in creating SQL Server Database (on other machine) with C# windows Applica

    You need to enable the remote connection. Here's how to do it on SQL Express 2008:

    http://www.linglom.com/it-support/en...-2008-express/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured