Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 8th, 2005, 09:43 AM
Registered User
Join Date: Jun 2005
Location: , , .
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")

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

Reply With Quote
  #2 (permalink)  
Old July 14th, 2005, 02:08 AM
Friend of Wrox
Join Date: Sep 2003
Location: Minneapolis, MN, USA.
Posts: 171
Thanks: 0
Thanked 1 Time in 1 Post

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>"
end if
set rs = nothing

Reply With Quote
  #3 (permalink)  
Old June 15th, 2006, 03:03 PM
Registered User
Join Date: Jun 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

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)

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 01:08 AM.

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