Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. ASP.NET and SQL Server 2000 problems

ASP.NET and SQL Server 2000 problems

Scheduled Pinned Locked Moved ASP.NET
databasecsharpasp-netsql-servervisual-studio
3 Posts 3 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    anystudent
    wrote on last edited by
    #1

    My aspx page is trying to connect to a remote server with SQL Server 2000 installed on it, the ip of the server is 172.16.3.111 and the same is the instance of SQL Server, sql server is running in SQL Server Authentication mode, user id is "test" and password is "test123", name of database is myDB,the connection string which I am providing is as follows: data source=172.16.3.111\172.16.3.111;user id=test;password=test123;initial catalog=myDB;" But I am getting the following exception: SQL Server does not exist or access denied. even if I try the following connection string: "data source=172.16.3.111;user id=test;password=test123;initial catalog=myDB;" than also I get the same exception Can u please tell whats the problem,is the connection string correct,the DBA has also registered me "test" as a user on the SQL server.One thing which I want to mention is that through enterprise manager I can connect and use sql server without any problems,also please note that in VS.NET when I try connecting using server explorer and test the connection than I connect successfully, than why is problem occuring in connecting throug aspx page.

    P S 2 Replies Last reply
    0
    • A anystudent

      My aspx page is trying to connect to a remote server with SQL Server 2000 installed on it, the ip of the server is 172.16.3.111 and the same is the instance of SQL Server, sql server is running in SQL Server Authentication mode, user id is "test" and password is "test123", name of database is myDB,the connection string which I am providing is as follows: data source=172.16.3.111\172.16.3.111;user id=test;password=test123;initial catalog=myDB;" But I am getting the following exception: SQL Server does not exist or access denied. even if I try the following connection string: "data source=172.16.3.111;user id=test;password=test123;initial catalog=myDB;" than also I get the same exception Can u please tell whats the problem,is the connection string correct,the DBA has also registered me "test" as a user on the SQL server.One thing which I want to mention is that through enterprise manager I can connect and use sql server without any problems,also please note that in VS.NET when I try connecting using server explorer and test the connection than I connect successfully, than why is problem occuring in connecting throug aspx page.

      P Offline
      P Offline
      postmaster programmingknowledge com
      wrote on last edited by
      #2

      Try this link http://www.programmingknowledge.com/readDatabase.aspx[^]

      1 Reply Last reply
      0
      • A anystudent

        My aspx page is trying to connect to a remote server with SQL Server 2000 installed on it, the ip of the server is 172.16.3.111 and the same is the instance of SQL Server, sql server is running in SQL Server Authentication mode, user id is "test" and password is "test123", name of database is myDB,the connection string which I am providing is as follows: data source=172.16.3.111\172.16.3.111;user id=test;password=test123;initial catalog=myDB;" But I am getting the following exception: SQL Server does not exist or access denied. even if I try the following connection string: "data source=172.16.3.111;user id=test;password=test123;initial catalog=myDB;" than also I get the same exception Can u please tell whats the problem,is the connection string correct,the DBA has also registered me "test" as a user on the SQL server.One thing which I want to mention is that through enterprise manager I can connect and use sql server without any problems,also please note that in VS.NET when I try connecting using server explorer and test the connection than I connect successfully, than why is problem occuring in connecting throug aspx page.

        S Offline
        S Offline
        Sathesh Sakthivel
        wrote on last edited by
        #3

        anystudent wrote:

        data source=172.16.3.111\172.16.3.111;user id=test;password=test123;initial catalog=myDB;"

        The problem might be because of the 2 ip addresses provided. And also check the colon which you have provided in the Syntax.

        Regards, Satips.:rose:

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups