문제

Using Visual Studio 2012 I have created a TableAdapter and a corresponding stored procedure which can be accessed via GetData(). This was done using the graphical query generator. This works fine but I need to change the query.

Now, this might sound somewhat boring to you but how can I edit this stored procedure for the GetData() query? I cannot find a way to open the graphical query generator.

I have found the following description from Microsoft and it says: "The TableAdapter Configuration Wizard opens, ready for you to modify the query or stored procedure that fills the TableAdapter's associated data table."

http://msdn.microsoft.com/en-us/library/ms171902.aspx

I followed the steps but it doesn't allow editing the select statements etc. itself.

도움이 되었습니까?

해결책

The SQL statements are located in the database, not in the code or in the Visual Studio project. So, changing the statements in the database should do it.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top