Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Is it possible ...?
Hi

I have users in domain group who use application which uses sqlserve, they
have rights to insert, update, delete. I want some of the members of this
domain group to connect directly to the database using query analyzer but
with right only to read and they still of course can use application and
have full rights.

I can't change application, i don't want to crate another users with
different rights.

I want the same user to have different rights using application and query
analyzer.
Is it possible ? Maybe something similar...

regards
m.



Report this thread to moderator Post Follow-up to this message
Old Post
marta
07-29-05 01:23 AM


Re: Is it possible ...?
"marta" <marta20wawa@go2.pl> wrote in message
 news:dcbnlj$2vi$1@at
lantis.news.tpi.pl...
> Hi
>
> I have users in domain group who use application which uses sqlserve, they
> have rights to insert, update, delete. I want some of the members of this
> domain group to connect directly to the database using query analyzer but
> with right only to read and they still of course can use application and
> have full rights.
>
> I can't change application, i don't want to crate another users with
> different rights.
>
> I want the same user to have different rights using application and query
> analyzer.
> Is it possible ? Maybe something similar...
>

In this situation users should be granted Read permissions only, and in the
application, they can acquire different permissions by running
sp_setapprole.

David



Report this thread to moderator Post Follow-up to this message
Old Post
David Browne
07-29-05 01:23 AM


Re: Is it possible ...?
David Browne  napisal(a):
> "marta" <marta20wawa@go2.pl> wrote in message
>  news:dcbnlj$2vi$1@at
lantis.news.tpi.pl... 
>
> In this situation users should be granted Read permissions only, and in th
e
> application, they can acquire different permissions by running
> sp_setapprole.
>
> David

I can't change permissions asigned to domain group to which they
belong.
I can't change application in any way, i don't have acess to use
application role. I can't touch application. For me the best solution
would be if in query analyzer is check button "read only", and i could
use it ;)
I need to give users read only access using isql.

M.


Report this thread to moderator Post Follow-up to this message
Old Post
sqlserver
07-29-05 12:23 PM


Re: Is it possible ...?
I believe that the closest you can come is to create triggers on your tables
 from which you check
the application name (APP_NAME()) and if not expected, you rollback inside t
he trigger. This will
not prevent a bad seed from writing an app, setting the expected application
 name and do the bad
operations, though.

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www. solidqualitylearning
.com/
Blog: http:// solidqualitylearning
.com/blogs/tibor/


"sqlserver" <grupy_d@go2.pl> wrote in message
news:1122622386.882273.249700@g43g2000cwa.googlegroups.com...
>
> David Browne napisal(a): 
>
> I can't change permissions asigned to domain group to which they
> belong.
> I can't change application in any way, i don't have acess to use
> application role. I can't touch application. For me the best solution
> would be if in query analyzer is check button "read only", and i could
> use it ;)
> I need to give users read only access using isql.
>
> M.
>


Report this thread to moderator Post Follow-up to this message
Old Post
Tibor Karaszi
07-29-05 12:23 PM


Re: Is it possible ...?
Think of writing an app that lets users enter select SQL statements only and
shows the results in a grid control.
Don't set the grid to allow updates. You can probably find some code for
something like that in the samples.
HTH

"marta" <marta20wawa@go2.pl> wrote in message
 news:dcbnlj$2vi$1@at
lantis.news.tpi.pl...
> Hi
>
> I have users in domain group who use application which uses sqlserve, they
> have rights to insert, update, delete. I want some of the members of this
> domain group to connect directly to the database using query analyzer but
> with right only to read and they still of course can use application and
> have full rights.
>
> I can't change application, i don't want to crate another users with
> different rights.
>
> I want the same user to have different rights using application and query
> analyzer.
> Is it possible ? Maybe something similar...
>
> regards
> m.
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Bob
07-29-05 06:23 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 11:46 AM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006