remote connection to SQL server problems

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default remote connection to SQL server problems

    While developing an ASP.NET with a SQL server running
    locally, I didn't have any problems using the following
    connection string (where ATP is the local server's name)

    "Server=ATP;uid=AppAdmin;pwd=pass;Database=DB1 ";

    When I try to connect to a remote SQL server named DTP,
    using connection string:

    "Server=DTP;uid=AppAdmin;pwd=pass;Database=DB1 ";

    I am getting an exception "SQL Server doesn't exist or
    access denied".

    I wrote a Windows Forms apps in .NET and successfully
    connected to DTP server with exaclty the same connection
    string as used in ASP.NET. So, I figured my problem had
    something to do with accounts under which both apps run.

    I tried the following:

    1. added to connection string "Network Library =dbmssocn"
    per MS article Q315159

    2. tried using impersonation:

    <identity
    impersonate="true"
    userName="user"
    password="pass"
    />

    where user is the user name for an administrator on my
    machine

    Still, no luck.

    Any suggestions are greatly appreciated.

    Thanks,
    VR
    VR Guest

  2. Similar Questions and Discussions

    1. DW remote connection to mySQL server failure
      Am trying to learn Interakt's Impakt . Could not go very far in this learning attempt as I cannot get DW to establish remote connection to the...
    2. Connection Reset JDBC Error - Remote Server
      I work for a web development/web hosting company and we are currently developing a site in CF MX7 (residing on our CF7 server) that connects to a...
    3. The underlying connection was closed: Unable to connect to the remote server.
      Hello, I'm a novice to .net environment. I'm trying to make use of a webservice in my asp.net client application. I successfully added reference...
    4. The underlying connection was closed: Unable to connect to the remote server
      These code generates the error: WebRequest request = WebRequest.Create("http://www.yahoo.com"); WebResponse response = request.GetResponse(); ...
    5. Encrypted connection to remote SQL SERVER
      Hi, I am having trouble making an encryped connection to an sql server over the internet, and would really appreciate some help. I have tried to...
  3. #2

    Default RE: remote connection to SQL server problems

    Hi Victor,

    There are a lot of possible reasons for the error:

    "SQL Server does not exist or access denied"

    Based on my reserch and experience, the following Knowledge Base article is
    useful to you. Please refer to it carefully.

    INF: Potential Causes of the "SQL Server Does Not Exist or Access Denied"
    Error Message
    [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;328306[/url]

    I hope it helps.

    Best regards,

    Jacob Yang
    Microsoft Online Partner Support
    <MCSD>
    Get Secure! ¨C [url]www.microsoft.com/security[/url]
    This posting is provided "as is" with no warranties and confers no rights.

    Jacob Yang [MSFT] Guest

  4. #3

    Default RE: remote connection to SQL server problems

    Thanks Jacob.

    I will sure read the article.

    Also, while on the subject, what is the customary way for
    allowing ASP.NET applications to access a remote SQL
    server? Is adding ASPNET account on the SQL server
    appropriate or should I impersonate an existing user with
    my ASP.NET app?

    Thanks again.
    VR

    >-----Original Message-----
    >Hi Victor,
    >
    >There are a lot of possible reasons for the error:
    >
    >"SQL Server does not exist or access denied"
    >
    >Based on my reserch and experience, the following
    Knowledge Base article is
    >useful to you. Please refer to it carefully.
    >
    >INF: Potential Causes of the "SQL Server Does Not Exist
    or Access Denied"
    >Error Message
    >[url]http://support.microsoft.com/default.aspx?scid=kb;en-[/url]
    us;328306
    >
    >I hope it helps.
    >
    >Best regards,
    >
    >Jacob Yang
    >Microsoft Online Partner Support
    ><MCSD>
    >Get Secure! ¨C [url]www.microsoft.com/security[/url]
    >This posting is provided "as is" with no warranties and
    confers no rights.
    >
    >.
    >
    VR Guest

  5. #4

    Default RE: remote connection to SQL server problems

    Hi Victor,

    Your new question is a big topic. Based on my research and experience, the
    following URLs are useful for your new question. Please refer to it
    carefully.

    Building Secure ASP.NET Applications: Authentication, Authorization, and
    Secure Communication - Data Access Security
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/ht[/url]
    ml/SecNetch12.asp
    "...This chapter presents recommendations and guidance that will help you
    develop a secure data access strategy..."

    HOW TO: Configure SQL Server Security for .NET Applications
    [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;815154[/url]

    I hope it helps.

    Best regards,

    Jacob Yang
    Microsoft Online Partner Support
    <MCSD>
    Get Secure! ¨C [url]www.microsoft.com/security[/url]
    This posting is provided "as is" with no warranties and confers no rights.

    Jacob Yang [MSFT] 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