Where to store SQL Queries in Ruby Console App

J

Joe Martin

Hi
I'm building out a windows console app that talks to SQL Server 2005.
I'm coming from an Access world, where the queries are nicely included
in the front end.

So I'm wondering: what are best practices for storing queries for an
application? I certainly don't want to hard-code the queries into the
application itself. One idea is to store each query in its own file in
a separate directory and read in those query files on the fly. But I'm
still left wondering if there is a bettery way to this.

Ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,737
Latest member
Georgeengab

Latest Threads

Top