Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Ado & Sql Server 2000

Posted on 2001-06-06
4
Medium Priority
?
158 Views
Last Modified: 2013-11-23
I have a Sql-Server 2000 and I Access Using HTTP

I must to open an ado-recordset using a specify SQL queries directly in the URL, for example:

http://IISServer/nwind?sql=SELECT+*+FROM+Customers+FOR+XML+AUTO&root=root

the result is an XML, and i must use this recordset to populate a dbgrid in a visual basic application

How to do?

0
Comment
Question by:maurizio
4 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 200 total points
ID: 6160066
the ado recordset has the Open method, which accepts if you give the filename of an XML file...
Thus you might save the result of the http:... to a local file.xml, and open it with your ADORecordset, and bind this one to your dbgrid...
CHeers
0
 
LVL 2

Expert Comment

by:WalterM
ID: 6160225
I suggest you examine the ADO.Stream object, which can store recordsets as XML. The MSDN contains some examples of using Streams in combination with SQL-Server 2000, for example this article:

HOWTO: Retrieve XML Data by Using a SQL XML Query in a Visual Basic Client
http://support.microsoft.com/support/kb/articles/Q271/6/20.ASP

Hope this helps a bit,

Michel
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7133345
Hi maurizio,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will suggest to:

    Split points between: angelIII and WalterM

maurizio, if you think your question was not answered at all or if you need help, you can simply post a new comment here.  Community Support moderators will follow up.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:Computer101
ID: 7167910
Points reduced for split and comment accepted as answer.  The other expert can look for their question in this topic area

Computter101
E-E Moderator
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month20 days, 15 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question