Instead of writing the SQL query, is there any lazy way to get the data from database in XML format.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well… Rails is a framework for Ruby that can accomplish what you are looking for, give this a try in a controller:
Activerecord can do lots of other magic as well.
After installing rails you must install the Gem for SQL Server:
Then add a few things to your
database.ymlto get it to work with SQL Server:Rails has some cool methods for manipulating and reading XML built in, but I suggest the gem Nokogiri.