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 June 8th, 2005, 09:43 AM
Registered User
 
Join Date: Jun 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP Recordset

I have the following code trying to connect to an access DB.

     set conn=server.CreateObject("ADODB.Connection")


     conn.Open " Provider=MS Remote;Remote Server=hps-amgsolp08;Remote Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Z:\Nirvana\Nirvana.mdb;"

     set rs=server.CreateObject("ADODB.recordset")
     rs.CursorLocation=3

I am getting an error on the following line.

     rs.Open "select received_dt from ordermgr_srvc_notification_item_fact",conn


The error is " ADO/RDS (0x800A1004)Business object cannot be created."



Please let me know how I can proceed on this.Thanks

 
Old July 14th, 2005, 02:08 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 171
Thanks: 0
Thanked 1 Time in 1 Post
Default

Try this...

conn = "Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\mydatabase.mdb;Uid=Admin;Pwd=;"

sql = "select received_dt from ordermgr_srvc_notification_item_fact"
rs.Open sql, conn
if not rs.eof then
    do while not rs.eof
        response.write rs("received_dt") & "<br>"
    rs.movenext
    loop
end if
rs.close
set rs = nothing


 
Old June 15th, 2006, 03:03 PM
Registered User
 
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I thought that in order to use the CreateObject method within an ASP page, you would have to specify a second argument with the server URL string where the Business Object resides. In the case above, the CreateObject call would be as follows:
 set rs=server.CreateObject("ADODB.recordset", strServer)

strServer is a literal or variable with the URL to the IIS WebSite where the MSADC virtual directory exists.

I am experience difficulty with ASP.NET 2.0 compiled DLLs working via RDS with IIS 6.0 (Win2K3 server)






Similar Threads
Thread Thread Starter Forum Replies Last Post
Recordset error ASP with Informix huangabriel Classic ASP Databases 0 July 9th, 2007 04:54 PM
asp searching and recordset paging kumiko Classic ASP Basics 0 May 22nd, 2007 03:46 AM
ASP | db recordset paging PLEASE HELP!! burns Classic ASP Basics 0 February 26th, 2006 09:43 AM
ASP Recordset - Oracle Werther Classic ASP Databases 0 September 13th, 2005 10:06 PM
Recordset Pagination (ASP Access) darinsee Classic ASP Databases 9 September 24th, 2004 05:30 PM





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