You can use a FOR XML select statement, using XMLDATA as a flag on the
statement. This will create an XDR schema for the XML select statement you
are generating. You can then use the XDR schema as an input to XSD.EXE and
generate the XML Schema.

Signature
Kirk Allen Evans
Microsoft MVP, ASP.NET
www.xmlandasp.net
Read my web log at http://weblogs.asp.net/kaevans
> Hi !
>
[quoted text clipped - 4 lines]
> best regards
> Terje