?
Solved

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

Posted on 2007-08-03
5
Medium Priority
?
344 Views
Last Modified: 2008-09-08
Hi,
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.
Thanks,
RR




0
Comment
Question by:IngridK
  • 2
4 Comments
 
LVL 17

Expert Comment

by:Daniel Reynolds
ID: 19629013
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?
0
 

Author Comment

by:IngridK
ID: 19654366
Yes, I did. Followed the instructions on msdn..
0
 

Author Comment

by:IngridK
ID: 19692279
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.


0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 22422715
PAQed with points refunded (125)

Computer101
EE Admin
0

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Question has a verified solution.

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

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
MSSQL DB-maintenance also needs implementation of multiple activities. However, unprecedented errors can hamper the database management. In that case, deploying Stellar SQL Database Toolkit ensures fast and accurate database and backup repair as wel…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
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.
Suggested Courses

809 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