Connecting to SQL Server from ASP.NET

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Connecting to SQL Server from ASP.NET

    Hi,

    Hi I have SQL Server Instances running on same machine.
    How do i connect to the "SecondInstance" of SQL Server on
    a machine from ASP.NET?

    Thanks for the Help

    Chip
    Chip Guest

  2. Similar Questions and Discussions

    1. Connecting to SQL server
      Are settings configured wrong? Of course both possible reasons given are both true, that is the web services is up and running and the ODBC DSN...
    2. Connecting SQL Server with DW using ASP.NET VB
      Hello All, I'm trying to connect SQL Server with DW using ASP.NET VB using several connection strings and getting different error messages. The...
    3. connecting to dsn on server
      I have a website on a shared server at CrystalTech. They say: Your data source verified. The connection string you should use in your code is...
    4. Connecting SQL Server to DW
      Hello I'm I have a project that is due shortly and I have been trying for about a week to connect SQL Server with DW with no success. I have read...
    5. Web Server connecting to Informix Server
      I am running an OLTP system with Informix 7.3 IDS on HPUX. We are considering writing some web interfaces to connect to the database. At first we...
  3. #2

    Default Re: Connecting to SQL Server from ASP.NET

    Where you specify the server in your connection string, mention a
    ServerName\InstanceName.

    E.g.

    ConnectString = "Server=MyServer\SecondInstance;Database=MyDB;UID; PWD="


    --
    Manohar Kamath
    Editor, .netWire
    [url]www.dotnetwire.com[/url]


    "Chip" <anonymous@discussions.microsoft.com> wrote in message
    news:39cf01c3fe17$acdea080$a401280a@phx.gbl...
    > Hi,
    >
    > Hi I have SQL Server Instances running on same machine.
    > How do i connect to the "SecondInstance" of SQL Server on
    > a machine from ASP.NET?
    >
    > Thanks for the Help
    >
    > Chip

    Manohar Kamath [MVP] Guest

  4. #3

    Default Re: Connecting to SQL Server from ASP.NET

    microsoft.public.dotnet.framework.aspnet

    SitePoint .NET Forum
    [url]http://www.sitepointforums.com/forumdisplay.php?s=&daysprune=1000&forumi[/url]
    d=141

    ASP Messageboard - ASP.NET Forum
    [url]http://www.aspmessageboard.com/forum/aspplus.asp[/url]

    Extreme .NET Forums - .NET - ASP.NET
    [url]http://www.dotnetforums.net/f62[/url]

    Microsoft ASP.net
    [url]http://www.asp.net[/url]
    A Microsoft site.

    Best regards,
    J. Paul Schmidt, Freelance ASP Web Developer
    [url]http://www.Bullschmidt.com[/url]
    ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Bullschmidt Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139