this will generate a set of statement to run in QA ( allows you to be selective if required ), change "Users" to the required user/logon/role
select 'grant select on ['+name+'] to Users' from sysobjects where type ='U' ;
this does a blanket grant on everything ( modify as required )
DECLARE @SQLCmdVARCHAR(1000)
DECLARE GrantExecCrs SCROLL CURSOR FOR
SELECT 'GRANT select ON ' + Name + ' TO users'
FROM sysobjects
WHERE TYPE = 'U'
OPEN GrantExecCrs
FETCH NEXT FROM GrantExecCrs INTO @SQLCmd
WHILE @@FETCH_STATUS = 0
BEGIN
--SELECT @SQLCmd
EXEC (@SQLCmd)
FETCH NEXT FROM GrantExecCrs INTO @SQLCmd
END
CLOSE GrantExecCrs
DEALLOCATE GrantExecCrs
GO
[font="Comic Sans MS"]The GrumpyOldDBA[/font]
www.grumpyolddba.co.uk
http://sqlblogcasts.com/blogs/grumpyolddba/