0

您好,我有一个组合两个表的查询。它在 excel 中运行良好,但是在尝试将其添加到 gridview 时在 VS10 中超时。ODBC 是 ProvideX ,它不是很灵活......它甚至不会让我使用连接,但我的代码和查询如下。有什么问题可以告诉我,谢谢!

SELECT CWIPH.CUST_NO, CWIPH.JOB_NAME, CJCMS.JOB_DESC
FROM CJCMS CJCMS, CWIPH CWIPH
WHERE CWIPH.JOB_NO = CJCMS.JOB_NO

ASP

<asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1">
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="Dsn=Jake" ProviderName="System.Data.Odbc" 
    SelectCommand="SELECT CWIPH.CUST_NO, CWIPH.JOB_NAME, CJCMS.JOB_DESC
    FROM CJCMS CJCMS, CWIPH CWIPH
    WHERE CWIPH.JOB_NO = CJCMS.JOB_NO">

4

0 回答 0