次の手順に従って、Visual Studio から Stored Proc の結果を取得できます。
0) Select View > Server Explorer
1) Locate the Data Connection that contains the SP of interest.
2) Right-click the SP and select Execute; if any args are required, it will allow you to populate those in a dialog and then proceed with the execution
有効な引数を指定した場合 (および SP がデータを返す場合)、結果は [T-SQL 結果] タブのグリッドに表示されます。
では、特定の列の値を合計するなど、返された "データセット" に対してクエリを実行したい場合はどうすればよいでしょうか? Visual Studio.Server Explorer.T-SQL 内から直接実行できますか? もしそうなら、どのように?
アップデート
私は Khazratbek を信じていますが、Data Connection の下の Tables フォルダーを右クリックしてインスタンス化された新しいクエリでここまでしか取得できません。
SELECT SUM(QtyShipped), SUM(QtyOrdered) FROM CPSData.
...最後の「.」に続くドロップダウンとして使用できるオプション。Stored Proc (SQLQuery1.sql) の結果は含まれません。
それは本当に可能ですか?