您好我有一个结合两个表的查询。它在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">