Attached is a script that uses WB's CLR to create an xml schema file from a SQL Server Database. The oledb classes in the .NET Framework are not a huge leap from COM ADO, and results are delivered very fast.
Stan,
Thank you for sharing your code. I have placed it in the Tech Database in hopes that it might be useful to the next user: http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/tsleft.web+WinBatch/dotNet/System_Data+Create~an~XML~Schema~File~from~a~SQL~Server~Database.txt