Solved

Ado & Sql Server 2000

Posted on 2001-06-06
4
150 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 142

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

776 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