Problems connecting to SQL from ASP page

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

  1. #1

    Default Problems connecting to SQL from ASP page

    I'm having the weirdest problem. I have just installed
    sql server (msde), vs.net on my laptop. I copied all my
    databases and websites to the IIS directory so I can serve
    the pages. I'm getting the error below. When I try to
    view the pages, I get this error. I read the aspfaq and
    tried each of the hostnames in the connection string and
    they did not work. Is it something i may be over looking,
    maybe the IUSR_ account or something. Anyhow, any and all
    help would be appreciated.

    Shawn

    Microsoft OLE DB Provider for SQL Server (0x80004005)
    [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not
    exist or access denied.

    Shawn Guest

  2. Similar Questions and Discussions

    1. Problems connecting to FMS 2
      Hi there, I'm having problems getting any applications for FMS 2 to work. The server is definitely running - I can see it in Task Manager and I...
    2. Problems connecting through a firewall
      Hi, We are testing contribute with a client of ours. I've set up a simple test site which works fine with Contribute from our offices. The client...
    3. Problems connecting to the SQL database (2)
      I posted a letter some minutes ago, and want to add the errormessage I get when I try to connect to the database. The message is: SQL-server...
    4. Problems connecting to Access through FP
      Applies to: Microsoft Front Page 2000, Microsoft Access 2000 Operating System: Windows 2000 Professional Web Server: IIS 5.0 I've created a very...
    5. Problems connecting to .asp page
      I am running IIS locally on my machine. Everytime I try to access a page that has a database connection it does not work. I have the dsn created...
  3. #2

    Default Re: Problems connecting to SQL from ASP page

    On Fri, 18 Jun 2004 12:11:59 -0700, "Shawn"
    <anonymous@discussions.microsoft.com> wrote:
    >I'm having the weirdest problem. I have just installed
    >sql server (msde), vs.net on my laptop. I copied all my
    >databases and websites to the IIS directory so I can serve
    >the pages. I'm getting the error below. When I try to
    >view the pages, I get this error. I read the aspfaq and
    >tried each of the hostnames in the connection string and
    >they did not work. Is it something i may be over looking,
    >maybe the IUSR_ account or something. Anyhow, any and all
    >help would be appreciated.
    >
    >Shawn
    >
    >Microsoft OLE DB Provider for SQL Server (0x80004005)
    >[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not
    >exist or access denied.
    Show your connection string. This is normally a permission error, but
    it may be you're trying to access a server that really isn't there.
    Take a look at connection strings:

    [url]http://www.able-consulting.com/ADO_Conn.htm[/url]

    Jeff
    Jeff Cochran Guest

  4. #3

    Default Re: Problems connecting to SQL from ASP page

    Here's the connection string I am using:
    --------------
    MyConnStr = "provider=SQLOLEDB; network=DBMSSOCN;
    server=myserver;"
    MyConnStr = MyConnStr & "database=mydb;
    uid=myusername; pwd=mypassword;"
    set ADODBConn = Server.CreateObject
    ("ADODB.Connection")
    ADODBConn.open MyConnStr
    ---------------

    Any and all help would be appreciated. The sql server
    msde and windows xp pro (IIS) are on the same machine.
    >-----Original Message-----
    >On Fri, 18 Jun 2004 12:11:59 -0700, "Shawn"
    ><anonymous@discussions.microsoft.com> wrote:
    >
    >>I'm having the weirdest problem. I have just installed
    >>sql server (msde), vs.net on my laptop. I copied all
    my
    >>databases and websites to the IIS directory so I can
    serve
    >>the pages. I'm getting the error below. When I try to
    >>view the pages, I get this error. I read the aspfaq
    and
    >>tried each of the hostnames in the connection string
    and
    >>they did not work. Is it something i may be over
    looking,
    >>maybe the IUSR_ account or something. Anyhow, any and
    all
    >>help would be appreciated.
    >>
    >>Shawn
    >>
    >>Microsoft OLE DB Provider for SQL Server (0x80004005)
    >>[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does
    not
    >>exist or access denied.
    >
    >Show your connection string. This is normally a
    permission error, but
    >it may be you're trying to access a server that really
    isn't there.
    >Take a look at connection strings:
    >
    >[url]http://www.able-consulting.com/ADO_Conn.htm[/url]
    >
    >Jeff
    >.
    >
    Shawn Guest

  5. #4

    Default Re: Problems connecting to SQL from ASP page


    OK, fixed it. I removed this network=DBMSSOCN; and it
    worked. What does the DBMSSOCN do?

    Thanks for your help.

    Shawn
    >-----Original Message-----
    >Here's the connection string I am using:
    >--------------
    > MyConnStr = "provider=SQLOLEDB; network=DBMSSOCN;
    >server=myserver;"
    > MyConnStr = MyConnStr & "database=mydb;
    >uid=myusername; pwd=mypassword;"
    > set ADODBConn = Server.CreateObject
    >("ADODB.Connection")
    > ADODBConn.open MyConnStr
    >---------------
    >
    >Any and all help would be appreciated. The sql server
    >msde and windows xp pro (IIS) are on the same machine.
    >
    >>-----Original Message-----
    >>On Fri, 18 Jun 2004 12:11:59 -0700, "Shawn"
    >><anonymous@discussions.microsoft.com> wrote:
    >>
    >>>I'm having the weirdest problem. I have just
    installed
    >>>sql server (msde), vs.net on my laptop. I copied all
    >my
    >>>databases and websites to the IIS directory so I can
    >serve
    >>>the pages. I'm getting the error below. When I try
    to
    >>>view the pages, I get this error. I read the aspfaq
    >and
    >>>tried each of the hostnames in the connection string
    >and
    >>>they did not work. Is it something i may be over
    >looking,
    >>>maybe the IUSR_ account or something. Anyhow, any and
    >all
    >>>help would be appreciated.
    >>>
    >>>Shawn
    >>>
    >>>Microsoft OLE DB Provider for SQL Server (0x80004005)
    >>>[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does
    >not
    >>>exist or access denied.
    >>
    >>Show your connection string. This is normally a
    >permission error, but
    >>it may be you're trying to access a server that really
    >isn't there.
    >>Take a look at connection strings:
    >>
    >>[url]http://www.able-consulting.com/ADO_Conn.htm[/url]
    >>
    >>Jeff
    >>.
    >>
    >.
    >
    Shawn Guest

  6. #5

    Default Re: Problems connecting to SQL from ASP page

    "Shawn" wrote in message news:1eb4101c45620$a60823b0$a101280a@phx.gbl...
    :
    : OK, fixed it. I removed this network=DBMSSOCN; and it
    : worked. What does the DBMSSOCN do?

    Obviously it keeps it from working! (O:=

    Network=DBMSSOCN" tells ODBC to use TCP/IP rather than Named Pipes
    [url]http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q238/9/49.ASP&NoWebContent=1[/url]

    --
    Roland Hall
    /* This information is distributed in the hope that it will be useful, but
    without any warranty; without even the implied warranty of merchantability
    or fitness for a particular purpose. */
    Technet Script Center - [url]http://www.microsoft.com/technet/scriptcenter/[/url]
    WSH 5.6 Documentation - [url]http://msdn.microsoft.com/downloads/list/webdev.asp[/url]
    MSDN Library - [url]http://msdn.microsoft.com/library/default.asp[/url]


    Roland Hall 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