I have a console application in C # that creates a bunch of queries on a database server.
I often need to modify SQL and just simply copy / paste SQL from my SQL editor into C # source code without having to reformat SQL every time.
Currently, SQL is on the same line ... as shown below:
OleDbDataAdapter da_ssm_servers = new OleDbDataAdapter(@"SELECT * FROM mytable ORDER BY Server;", connSSM);
SQL is much longer than above, with lots of JOINS tables, etc.
I would like to keep the formatting, but really don't want to go back and add quotes around each line, etc.
If anyone has any recommendations and examples, this will be appreciated.
source share