read sql query strings from a file
some times we would have to use huge sql query strings as 1000 lines in the program at run time. Is it possible to read them from a file. Which kind of files is good for this issue. xml files or text files or ini file or inf file. Is there any useful method or library for parsing these queries.
Deborah StoddardPosted Apr 27, 2015, 4:53 AM
Now regarding the file type, there are quite a few of them that you can choose from, see this SO answer, it suggests toml, json, xml or txt, so I would say that this is all up to you. Use whatever you would prefer.
Also to add, yes you can even use INI file for this and here is a VB.NET library that can process INI files that you could use.
Last thing, did you consider using the Stored Procedures as an alternative?