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:38

rhaazy pisze:
> The error message is simply that my user didn't have permission to
> execute the statement.
>
> I would like to be able to grant the user insert, update, delete,
> select on all tables in a particular database.(remotely or local, both
> situations are possible)
>
> How would I do this?

Permissions are assigned to logins/users and there is no difference
between remote and local scenario.

If you want all DML operations granted on all tables in particular
database, simply grant two database roles to your database user:

USE your_database;
GO
EXEC sp_addrolemember N'db_datareader', N'database_user';
GO
EXEC sp_addrolemember N'db_datawriter', N'database_user';
GO



--
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

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