Ask a Question related to ASP Database, Design and Development.
-
Shawn #1
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
-
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... -
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... -
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... -
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... -
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... -
Jeff Cochran #2
Re: Problems connecting to SQL from ASP page
On Fri, 18 Jun 2004 12:11:59 -0700, "Shawn"
<anonymous@discussions.microsoft.com> wrote:
Show your connection string. This is normally a permission error, but>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.
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
-
Shawn #3
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.
my>-----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 allserve>>databases and websites to the IIS directory so I canand>>the pages. I'm getting the error below. When I try to
>>view the pages, I get this error. I read the aspfaqand>>tried each of the hostnames in the connection stringlooking,>>they did not work. Is it something i may be overall>>maybe the IUSR_ account or something. Anyhow, any andnot>>help would be appreciated.
>>
>>Shawn
>>
>>Microsoft OLE DB Provider for SQL Server (0x80004005)
>>[DBNETLIB][ConnectionOpen (Connect()).]SQL Server doespermission error, but>>>exist or access denied.
>Show your connection string. This is normally aisn't there.>it may be you're trying to access a server that really>Take a look at connection strings:
>
>[url]http://www.able-consulting.com/ADO_Conn.htm[/url]
>
>Jeff
>.
>Shawn Guest
-
Shawn #4
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
installed>-----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 justto>my>>>sql server (msde), vs.net on my laptop. I copied all>serve>>>databases and websites to the IIS directory so I can>>>the pages. I'm getting the error below. When I try>and>>>view the pages, I get this error. I read the aspfaq>and>>>tried each of the hostnames in the connection string>looking,>>>they did not work. Is it something i may be over>all>>>maybe the IUSR_ account or something. Anyhow, any and>not>>>help would be appreciated.
>>>
>>>Shawn
>>>
>>>Microsoft OLE DB Provider for SQL Server (0x80004005)
>>>[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does>permission error, but>>>>>exist or access denied.
>>Show your connection string. This is normally a>isn't there.>>it may be you're trying to access a server that really>.>>Take a look at connection strings:
>>
>>[url]http://www.able-consulting.com/ADO_Conn.htm[/url]
>>
>>Jeff
>>.
>>
>Shawn Guest
-
Roland Hall #5
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



Reply With Quote

