Since MS Access can save a query in the database file I assume there is a way to do this programmatically from C#. Any idea how?
-
What do you mean by "Save a Query"? Save the SQL that you sent to the database, then run it later?Mikey Mouse– Mikey Mouse2013-06-26 16:38:49 +00:00Commented Jun 26, 2013 at 16:38
-
Yes. In MS Access for instance you have a list of tables and a list of queries. These queries can only be stored in the database file since when you close it and re open it they're still there.Juan– Juan2013-06-26 16:42:21 +00:00Commented Jun 26, 2013 at 16:42
-
you find it or not yet ?? @Juanreguieg younes– reguieg younes2020-07-20 19:03:52 +00:00Commented Jul 20, 2020 at 19:03
Add a comment
|
1 Answer
Looks like it's not possible. SQL Server doesn't record queries, according to This (Not sure about other databases, but I imagine they all work the same way)
You'd need to manually store them as a varchar in a table
1 Comment
Juan
But then how do you explain MS Access storing queries in the database file? SQL Server is different than the JET Engine.