I know how to create a Query though Query Design (manually)
but how to create a "Query" with command? i am looking for something like
Create Query [Query_Name]
As
Select * from Table1
Can anyone post me the code snippet that can do something like this?
Things i have TRIED
Erik von Asmuth's solution : The below query
CREATE PROCEDURE MyQuery [@Param1] Integer; SELECT * FROM SalesInvoice WHERE SalesInvoice.S_Id = [@Param1]
gave the following error

