我正在尝试通过创建与它的连接然后在服务器资源管理器中运行查询来查看我的SQL语句(MS Access)是否在Visual Studio中执行了它应该做的事情。
我想知道这两个查询之间是否有任何区别:
SELECT duckbill_.id, duckbill_.pack_size, duckbill_.description, duckbill_.vendor_id, duckbill_.department, duckbill_.subdepartment, duckbill_.unit_cost, duckbill_.unit_list, duckbill_.open_qty, duckbill_.UPC_code,
duckbill_.UPC_pack_size, duckbill_.crv_id, duckbill__vendors.vendor_item
FROM duckbill_, duckbill__vendors
WHERE (duckbill_.vendor_id = duckbill__vendors.vendor_id)
和
SELECT duckbill_.id, duckbill_.pack_size, duckbill_.description, duckbill_.vendor_id, duckbill_.department, duckbill_.subdepartment, duckbill_.unit_cost, duckbill_.unit_list, duckbill_.open_qty, duckbill_.UPC_code,
duckbill_.UPC_pack_size, duckbill_.crv_id, duckbill__vendors.vendor_item
FROM (duckbill_ LEFT OUTER JOIN
duckbill__vendors ON duckbill_.vendor_id = duckbill__vendors.vendor_id)
...但它甚至不允许我执行查询。我可以连接到数据库,但显然不是单个表。我收到这个错误:
*SQL Execution Error
<My SQL statement>
Error Message: Record(s) cannot be read; no read permission on 'duckbill_'.*
我该如何解决?
答案 0 :(得分:1)
我仍然希望在Visual Studio的服务器资源管理器(或任何其他Jet查询工具)中执行此操作。以下是我采取的措施:
Admin
用户现在,Visual Studio的服务器资源管理器能够在&#34; Admin&#34;下进行连接和运行查询。用户。
答案 1 :(得分:0)
我能够找到我需要做的事情:
Won) In Windows Explorer, hold shift and 2-click the MDB you want to work with.
Too) In Access, select Objects | Queries, then "Create query in Design view"
3) Close the "Show table" dialog
Fore) Right-click in the pane and select "SQL View"
你现在有一块空白画布可以“做你的伤害”