I am using SQL Server 2005. Is there any command or GUI tool (e.g. any menu/function from SQL Server management studio) to convert database table into XML schema file (.xsd)?
I've found this. Give it a try
Select CourseID, Name, CoursePrice FROM CouseMaster.Course Course FOR XML AUTO, XMLSCHEMA