DataSet TableAdapter throwing OVER SQL construct or statement not supported

后端 未结 2 1728
攒了一身酷
攒了一身酷 2021-01-22 18:38

I have a t-sql query written with this sample help.

SELECT  t.gName AS \'Product\'
, isnull(SUM(CASE WHEN t.Col = 1 THEN t.Quantity END),0) AS \'180ml\'
, isnull(         


        
相关标签:
2条回答
  • 2021-01-22 19:30

    The ADAPTER isnt able to create the diagram for the script. Right click, goto Panes, disselect the Diagram... and that's it! it runs :)

    0 讨论(0)
  • 2021-01-22 19:33

    I would put this SQL in to a Stored Procedure or a View. You can then populate your DataSet from there.

    0 讨论(0)
提交回复
热议问题