Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 25th, 2004, 01:46 PM
Registered User
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default SQL Server does not exist or access denied

I recently set up an OLE DB connection to SQL Server and I encountered problem by picking up the error:

Error Type:
Microsoft OLE DB Provider for SQL Server (0x80004005)
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
/user/connections/classifieds.asp, line 4

This is the classifieds.asp coding.
<%
set objConn = Server.CreateObject("ADODB.Connection")
    objConn.provider = "sqloledb"
    objConn.Open "Server=GRACELAN-AD2786;Database=reminderservice;Integrated Security=SSPI"
%>

The thing is everything work well when i secure access to database except when online.

 
Old April 26th, 2004, 03:51 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

ASP pages run as a dfferent user (generally IUSR_MachineName). This is the user to which you must grant access to the database.
 
Old April 26th, 2004, 04:00 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Also you can try giving your SQL server IP address there(Server=GRACELAN-AD2786) to see if that works. Then it may be a name resolution problem.

-Vijay G
 
Old December 22nd, 2004, 11:45 AM
Registered User
 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i have same problem and i found why i have it:

<a href='http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B888228'>http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B888228</a>

but solution still bothers me,
i have MSDE sql server and that's why connection string won't work.

Any suggestion ???

 
Old January 18th, 2005, 10:59 AM
Registered User
 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi guys and gals i have got a question , and you seem to know a bout it i do not Xsacly know what an SQL syntax error is and i've got wone can you help me on this
---------------------------------------------------------------------
SELECT * FROM tbl_gallery WHERE selVIPTYPE = 0 LIMIT , 10
MySQL Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' 10' at line 1

This script cannot continue, terminating.
thanks in advance

 
Old January 18th, 2005, 11:52 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

The LIMIT clause can take the form
Code:
LIMIT [a], [b]
where a is the offset from the first record returned and b is the number of records to return or
Code:
LIMIT [c]
where c is the number of records to return.
You therefore either need to add an offset of loose the comma.

HTH,

Chris






Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Server does not exist or access denied happygv SQL Server 2000 0 April 9th, 2008 02:27 AM
SQL Server does not exist or access denied jennypretty Classic ASP Databases 3 May 18th, 2007 11:43 AM
SQL Server does not exist or access denied. jimbeam36 BOOK: ASP.NET Website Programming Problem-Design-Solution 3 November 3rd, 2004 08:51 AM
SQL Server does not exist or access denied haidee_mccaffrey Classic ASP Databases 19 June 28th, 2004 09:38 PM
SQL Server does not exist or access denied. nitinmailbox All Other Wrox Books 1 June 25th, 2003 06:35 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.