HighTechTalks DotNet Forums  

SQL Server 2000 XML and VS 2005

Dotnet Data Tools microsoft.public.dotnet.datatools


Discuss SQL Server 2000 XML and VS 2005 in the Dotnet Data Tools forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Daniel Vaudrin @ pre2post.com
 
Posts: n/a

Default SQL Server 2000 XML and VS 2005 - 05-24-2006 , 10:48 PM






When using the IIS SQL XML connector with a template such as with the
following:

<?xml version='1.0' encoding='utf-8'?>

<Inscrits xmlns:sql="urn:schemas-microsoft-com:xml-sql">
<sql:header>
<sqlaram name="EventID">
</sqlaram>
</sql:header>
<sql:query>
SELECT *
FROM dv_Inscrits
WHERE EventIDCode= @EventID
FOR XML RAW
</sql:query>
</Inscrits>
---------------------

I get something similiar to this:

<?xml version="1.0" encoding="utf-8" ?>
- <Inscrits xmlns:sql="urn:schemas-microsoft-com:xml-sql">
<row TeamId="17630" TeamName=.......

----------------------
If I try to attach a Gridview to this XML datasource I get a complaint from
VS that says that:

The data source for GridView with id 'GridView1' did not have any properties
or attributes from which to generate columns. Ensure that your data source
has content.
---------------------
If I open the file in Internet Explorer, or even Excel for that matter, it
works fine. I can see the data. If I save the XML to a file and remove the
xmlns:sql="urn:schemas-microsoft-com:xml-sql" portion of the XML provided by
the SQL XML connecter the form works.

What should I be doing either in the template or VS-basic to make this work?



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.