Hello all.
I'm building a very simple application .net Console Application that will execute a SQL statement and post it to a URL. My issue is that the SQL Statement Might be very long and will certainly go over many lines. How can you specify a lot of text inside of a .config file?
Example:
<add key="SelectStatement" value="select * from test1table"/>
The above is pretty easy and works well. However, when that SQL is 1000+ characters long and includes many case statements, joins, group by it becomes more troublesome. A basic copy and paste from Query Analyzer doesnt work very well.
Ideal would be below, but doesn't work. :
<add key="SelectStatement"> select * from test1table </add>
Thanks for the help.
Edit: Based on the feedback, going to be more specific.
The plan is for a friend of mine, that's not too technical, to be able to deploy the .exe at various client locations. Each location will have a similar query, but each may be different. He'll have read only access to the tables, ie;, can't save anything into the database or create different objects. My hope was to leave all config settings to just 1 file. Is there a clean/easy way to store it in the .config file?