Solved

Ado & Sql Server 2000

Posted on 2001-06-06
4
149 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now