I'm trying to see if my SQL statement (MS Access) does what it should in Visual Studio by creating a connection to it and then running the query in the Server Explorer.
I want to find out if there's any difference between these two queries:
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)
and:
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)
...but it won't even let me execute the query. I can connect to the database, but apparently not to the individual tables. I get this error:
*SQL Execution Error
<My SQL statement>
Error Message: Record(s) cannot be read; no read permission on 'duckbill_'.*
How can I solve that?
I still wanted to do this in Visual Studio's server explorer (or any other Jet query tool). Here's what I did to fix it:
Admin
user which I connect withNow Visual Studio's Server Explorer was able to connect and run queries under the "Admin" user.