Problem with Sql server 2000 - XML support over http (IIS)

Posted on 2007-08-03
Last Modified: 2008-09-08
I am trying to do a simple task of qerying the sql data in XML format over HTTP like  http://localhost/timesheet/sql?select first name from employees for xml auto

I created the virtual directory (timesheet) pointing it to a new folder on c:  -  program- microsoft sql server - configure sql xml support on iis - Gave all the right parameters. I have "allow sql , allow post, allow .." all checked on.

But when I try to acces sit thro' http like this:  http://localhost/timesheet/sql?select first name from employees for xml auto - I get the following error.

ERROR: 400.100 Bad Request
HResult: 0x80004005
Source: Microsoft SQL isapi extension
Description: The virtual name could not be recognized

when I run the same query  (select firstname from employees for xml auto)  in query analyser it works fine

I jsut followed the instructions on microsoft site - not sure if I am missing anything. Can anyone help me here.

Question by:IngridK
    LVL 17

    Expert Comment

    It sounds like the virtual directory for the location on your server is not set up properly.

    did you set up IIS appropriately for this?

    Author Comment

    Yes, I did. Followed the instructions on msdn..

    Author Comment

    I got it working.  I missed the installation of sqlXml 3.0. Seems like it is required to get xml over http because I could query the the daat in xml format from query analyser without installing sqlxml.

    LVL 1

    Accepted Solution

    PAQed with points refunded (125)

    EE Admin

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Performance is the key factor for any successful data integration project, knowing the type of transformation that you’re using is the first step on optimizing the SSIS flow performance, by utilizing the correct transformation or the design alternat…
    Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
    This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
    Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

    737 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

    19 Experts available now in Live!

    Get 1:1 Help Now