You are here: Re: Problem performing remote queries « MsSQL Server « IT news, forums, messages
Re: Problem performing remote queries

Posted by Marcin A. Guzowski on 08/16/07 13:08

rhaazy pisze:
> I am trying to a simple insert statement from a remote application
> against a sql server 2005 database. To fix the problem I was having,
> I had to grant the Login I was using the role of sysadmin. However I
> don't want this user to have that kind of control, what would be the
> best role to allow the user full access(including remoting) to only
> one particular database?

First, tell us what the problem was (provide an error message or other
details).

You can configure detailed permissions in SQL Server 2005, granting
sysadmin server role is far too much. Grant the login only enumerated
permissions that are essential to perform certain tasks (simple insert
in your case). Here is an T-SQL statement to do it:

GRANT INSERT ON your_table TO some_user;

Of course there are alternate solutions - e.g. database role
(db_datawriter), but try that one I mentioned above.


--
Best regards,
Marcin Guzowski
http://guzowski.info

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация