Resource files are definitley not the place for this. The point of resource files is to be a centralized repository for things that can be localized (i.e. overridden by other resource files that are defined for other languages/cultures).
For example, you'd put a string "Hello"
in a X.resources.dll
, but then you could also create a es-ES\X.resources.dll
for Spanish, in which the string would say "Hola"
instead — then when your application queries for the string, it will get whatever version matches the language/culture of the user's operating system configuration.
If you want your SQL to be easily changed without recompilation of code, put it in your App.config
and use the ConfigurationManager
class to read it out. If you don't want it to be changeable without code recompilation, just hard code the thing as a static
/const
string
. That said, the ideal, of course, is to make real stored procedures.