Re: access cmd to sql server "grant insert on.."

From: Joe Fallon (jfallon1_at_nospamtwcny.rr.com)
Date: 03/16/04


Date: Mon, 15 Mar 2004 23:03:22 -0500

You need to create a SPT query.
(SQL Pass Through.)
This uses the syntax of the SERVER (not Access).
So for Oracle commands you use Oracle syntax.
Ditto for SQL Server.

Connect to the server as a user that has rights to grant permissions to
other users. (sa or dbo).
Then write a new query and use the menu options:
Query
SQL Specific
Pass Through

In the Property window for your query enter a connection string as the power
user noted above.
The you can use normal Transact-SQL syntax:
grant select on table1 to someuser

Then run the query.
someuser should now be able to select records from table1.

To prove it, try to link to that table as someuser - it should now be in the
list of available tables.
(try linking before granting and you should not see it.)

-- 
Joe Fallon
Access MVP
"Alison" <anonymous@discussions.microsoft.com> wrote in message
news:db1001c40aeb$778dcab0$a401280a@phx.gbl...
> Hello
> I'm trying to send a "grant insert on..." command to a
> databse on sqlserver from access. I have the syntax ready
> to go, can anyone help with how to send it to the sql
> server database?
> thanks much
> alison
>


Relevant Pages

  • Re: freetexttable query never completes nor times out?
    ... Full text does not perform with a nested loop because the search is done for each iteration, if your server doesn't have much memory you will have a huge IO issue. ... When I get properties for the FT catalog, ... The company I am currently working for is a heavy consumer of SQL FTS ... dB (this time from the actual ASP page that passes the query to the ...
    (microsoft.public.sqlserver.fulltext)
  • Re: freetexttable query never completes nor times out?
    ... Full text does not perform with a nested loop because the search is done for each iteration, if your server doesn't have much memory you will have a huge IO issue. ... When I get properties for the FT catalog, ... The company I am currently working for is a heavy consumer of SQL FTS ... dB (this time from the actual ASP page that passes the query to the ...
    (microsoft.public.sqlserver.fulltext)
  • Re: freetexttable query never completes nor times out?
    ... if your server doesn't have much memory ... and the "executing query" ball just kept ... When I get properties for the FT catalog, ... The company I am currently working for is a heavy consumer of SQL FTS ...
    (microsoft.public.sqlserver.fulltext)
  • Re: freetexttable query never completes nor times out?
    ... SQL Server MVP ... This is a dev server so I hadn't even been ... When I get properties for the FT catalog, ... I just ran a similar query on ...
    (microsoft.public.sqlserver.fulltext)
  • RE: EXISTS reserved word in FROM clause
    ... we make a good pair because I know Access SQL ... from what you described the query syntax that I ... >The subquery should return the records: ...
    (microsoft.public.access.queries)