Solved

Ado & Sql Server 2000

Posted on 2001-06-06
4
151 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 50 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
using web browser with BING 40 131
TT Auto Dashboard 13 95
MsgBox 4 68
How to insert .png images to TClientDataSet .cds file? 2 30
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

808 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