Connecting to Remote SQL Server

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

  1. #1

    Default Connecting to Remote SQL Server

    HI,
    Uses: Windows XP professional, Winodws 2000 Server, SQL Server 2000, Visual
    Studio 2003;

    I'm trying to connect a Remote SQL Server which resides in my local area
    network via my ASP.NET application, but I do get an Error web page saying:
    "Login Failed for user'(null)'. Reason not associated with a trusted SQL
    Server connection". There's no problem in connecting to a local SQL Server,
    although had the problem earlier but by giving the user ASPNET the rights for
    access certain database it was Okay. By giving the user "sa" or others, yet I
    can not access the Remote SQL Server. The way I'm accessing is as
    follows(I've declared a global constant in Global.asax which available
    through out my application):

    Public Const DbString As String = "integrated
    security=sspi;user=sa;password=xxx;initial catalog=dbsecurities;data
    source=Remote"


    Pls help me out with this by specifying what should I have to do.

    Note: The Remote SQL Server resides in computer which has Windows 2000
    Server and have installed .NET Framework 1.1. The local Computer is running
    in Windows XP and have installed .NET Framework 1.1 as well.

    Awaiting your response in anticipation.

    Regards,


    --
    Mohammed Hifni Shahzard Nazeer,
    JB Securities Pvt. Ltd.,
    Colombo.
    Hifni Shahzard Guest

  2. Similar Questions and Discussions

    1. Connecting via Local/Network to remote server
      Hi All, I am trying create a connection in Contribute. I provide the "Web address for our website". "http://chapp9/SalesStaging/SalesPages/" ...
    2. Connecting to remote database on separate server
      I was wondering if any of you could explain how to connect to a database that sits on a different server than the site? Is it possible to connect...
    3. * * * Connecting DW to a REMOTE 'Testing server' * * *
      Hello all, I've now spent 7 full 12 hour days on this, with no success... I am begging for help. Books, google, macromedia, the forums have all...
    4. #24419 [Opn->Fbk]: ifx_connect broken when connecting to remote informix server
      ID: 24419 Updated by: sniper@php.net Reported By: leightonbrown at excite dot com -Status: Open +Status: ...
    5. Connecting to a remote MsSQL server...?
      Hi all, can I connect to a MsSQL server using DW MX? What are the info needed to connect? I.e.: what do I need to ask to the server admin? ...
  3. #2

    Default Re: Connecting to Remote SQL Server

    try the same thing without integrated security=sspi;
    "Hifni Shahzard" <HifniShahzard@discussions.microsoft.com> wrote in message
    news:40F5966E-777A-4F19-AA25-B5155708461E@microsoft.com...
    > HI,
    > Uses: Windows XP professional, Winodws 2000 Server, SQL Server 2000,
    > Visual
    > Studio 2003;
    >
    > I'm trying to connect a Remote SQL Server which resides in my local area
    > network via my ASP.NET application, but I do get an Error web page saying:
    > "Login Failed for user'(null)'. Reason not associated with a trusted SQL
    > Server connection". There's no problem in connecting to a local SQL
    > Server,
    > although had the problem earlier but by giving the user ASPNET the rights
    > for
    > access certain database it was Okay. By giving the user "sa" or others,
    > yet I
    > can not access the Remote SQL Server. The way I'm accessing is as
    > follows(I've declared a global constant in Global.asax which available
    > through out my application):
    >
    > Public Const DbString As String = "integrated
    > security=sspi;user=sa;password=xxx;initial catalog=dbsecurities;data
    > source=Remote"
    >
    >
    > Pls help me out with this by specifying what should I have to do.
    >
    > Note: The Remote SQL Server resides in computer which has Windows 2000
    > Server and have installed .NET Framework 1.1. The local Computer is
    > running
    > in Windows XP and have installed .NET Framework 1.1 as well.
    >
    > Awaiting your response in anticipation.
    >
    > Regards,
    >
    >
    > --
    > Mohammed Hifni Shahzard Nazeer,
    > JB Securities Pvt. Ltd.,
    > Colombo.

    Khan Imran Guest

  4. #3

    Default Re: Connecting to Remote SQL Server

    Now I do get an Error as "SQL Server does not exit or Access Denied". Is
    there anything I've to do in the Server?(the Machine where windows 2000
    server is installed. It's a Standalone server which is a member of our domain)

    "Khan Imran" wrote:
    > try the same thing without integrated security=sspi;
    > "Hifni Shahzard" <HifniShahzard@discussions.microsoft.com> wrote in message
    > news:40F5966E-777A-4F19-AA25-B5155708461E@microsoft.com...
    > > HI,
    > > Uses: Windows XP professional, Winodws 2000 Server, SQL Server 2000,
    > > Visual
    > > Studio 2003;
    > >
    > > I'm trying to connect a Remote SQL Server which resides in my local area
    > > network via my ASP.NET application, but I do get an Error web page saying:
    > > "Login Failed for user'(null)'. Reason not associated with a trusted SQL
    > > Server connection". There's no problem in connecting to a local SQL
    > > Server,
    > > although had the problem earlier but by giving the user ASPNET the rights
    > > for
    > > access certain database it was Okay. By giving the user "sa" or others,
    > > yet I
    > > can not access the Remote SQL Server. The way I'm accessing is as
    > > follows(I've declared a global constant in Global.asax which available
    > > through out my application):
    > >
    > > Public Const DbString As String = "integrated
    > > security=sspi;user=sa;password=xxx;initial catalog=dbsecurities;data
    > > source=Remote"
    > >
    > >
    > > Pls help me out with this by specifying what should I have to do.
    > >
    > > Note: The Remote SQL Server resides in computer which has Windows 2000
    > > Server and have installed .NET Framework 1.1. The local Computer is
    > > running
    > > in Windows XP and have installed .NET Framework 1.1 as well.
    > >
    > > Awaiting your response in anticipation.
    > >
    > > Regards,
    > >
    > >
    > > --
    > > Mohammed Hifni Shahzard Nazeer,
    > > JB Securities Pvt. Ltd.,
    > > Colombo.
    >
    >
    >
    Hifni Shahzard Guest

  5. #4

    Default Re: Connecting to Remote SQL Server


    hi,
    I am also facing the same problem.
    Anybody has the solution for this?



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

  6. #5

    Default Re: Connecting to Remote SQL Server

    You have to open port 1433 (or other port where your SQL server is) at
    the computer where you SQL Server is, for computers in LAN. Go to
    Control Panel/Windows Firewall/Exceptions/Add Port... and add that port.

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Milos Milovanovic 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