Solved

Ado & Sql Server 2000

Posted on 2001-06-06
4
153 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
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…

730 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