ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old February 13th, 2000, 05:41 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Using RDS To Query a Remote Access DB

<i><b>Originally posted by : RHarper (magi68@excite.com)</b></i><br />I have been looking at the RDS and experimenting with it in VB 6.0 to access an Access DB on IIS 4.0 remotely through VB 6.0.<br /><br />I keep getting an error 800A20FF Internet Server Error when I try to create a recordset. Below is the VB Code that I am using to access the site. Once there it fails at the "Set RS = df.Query(StrCon, sSql)" To retrieve a recordset.<br /><br />Public Function Retrieve_Info()<br />Dim Rs As ADODB.Recordset, ds As Object, df As Object<br />Dim sSQL As Variant, StrCon As Variant<br /><br /><br />Set ds = CreateObject("RDS.DataSpace")<br />Set df = ds.CreateObject("RDSServer.DataFactory", _<br />"http://myserver/")<br /><br />'Set Connection String<br /><br />StrCon = "dsn=myDsn"<br /><br />'Set SQL Query<br />sSQL = "SELECT Items.Title, Items.Epg FROM Items ORDER BY Items.Epg"<br /><br />'Get Recordset<br />**** It Fails Here ******<br />Set Rs = df.Query(sSQL, StrCon)<br /><br />Do Until Rs.EOF<br /> Picture1.Print Rs!epg & vbTab & Rs!Title & vbCrLf<br /> Rs.MoveNext<br />Loop<br /><br />'Clean Up<br />Rs.Close<br />Set ds = Nothing<br />Set df = Nothing<br />Set Rs = Nothing<br />End Function<br /><br /><br />I realize this is an ASP Bulletin Board but I thought someone might have tried this and succeeded. I am trying to update two databases at the same time. I have a backup of the DB on my site kept locally and would like to update both at the same time.<br /><br />I appreciate any help I can get.<br /><br />Any help <br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > Using RDS To Query a Remote Access DB


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway