View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Laphan[_2_] Laphan[_2_] is offline
external usenet poster
 
Posts: 25
Default Limiting tables in Excel query

Thanks for this DCM

I think we may need to go the web intranet route (ie create an IE form of
the data they are allowed) because our accounts system doesn't have cut and
dried tables so even though a sales person isn't allowed to look at
purchasing table, the nominal side of both the sales and purchase tables use
common data and this may limit the data in some way.

Your comments have proved food for thought though and I'll pass it onto our
gurus for them to suss out.

Thanks

Laphan

DCM Fan wrote in message
...
I don't think there's anyway to limit the tables available (visible), but
it's
certainly possibly to prevent users from selecting from them.

You say: <<by checking what SQL role they are in.

You'll need to go back to that role and set the SELECT permissions on only
the
tables that the SALES people need.

Sure, they might be able to "see" every table in MS Query, but they should
only
be able to select records from tables with the appropriate SELECT
permissions.
If the add a table w/o SELECT permission, the driver should return an error
like "user does not have the appropriate permsission on object <table"

The bottom line is that you can't limit the tables "showing up" in MS Query;
you'll have to control this from SQL Server.