Viewing 15 posts - 451 through 465 (of 1,219 total)
If I understand this correctly, you have one instance A where some stored procedure inserts and deletes rows in a database on instance B by means of direct INSERT and...
June 25, 2014 at 1:06 pm
Of course you could do that. Your requirement was not clear to me.
CREATE LOGIN [DOMAIN\Helpdeskgroup] FROM WINDOWS
go
USE Helpdeskdb
go
CREATE USER [Domain\Helpdeskgroup]
CREATE ROLE Helpdeskrole
EXEC sp_addrolemember Helpdeskrole, 'Domain\Helpdeskgroup'
EXEC sp_addrolemember db_datareader, Helpdeskrole
GRANT UPDATE, DELETE...
June 13, 2014 at 12:47 pm
EXEC sp_addrolemember 'db_datareader', 'DOMAIN\HELPDESKGROUP'
GRANT UPDATE, DELETE ON onespecifictable TO [DOMAIN\HELPDESKGROUP]
June 13, 2014 at 12:31 pm
I'm afraid that I don't understand the question. If you are running a stored procedure, the logon trigger till not fire, because you are already logged in.
But if you attempt...
June 12, 2014 at 10:29 am
Not sure that I understand the question. If you disable the login, there will not be any logins to record in the table...
And for that matter, nor will any logins...
June 12, 2014 at 10:15 am
I could think of taking it one step further than Steve, and have exactly the same permissions in the two environments. The one difference when restoring the database to dev,...
May 30, 2014 at 1:52 pm
SELECT [Count], MAX(Name)
FROM tbl
GROUP BY [Count]
Or, if you want more data on the same row:
; WITH CTE AS (
SELECT *, rowno = row_number()...
May 21, 2014 at 7:52 am
Both these events are related to Policy Based Management, and if you don't use PBM nothing can happen. And I don't think anything can happen even if you use PBM....
May 20, 2014 at 1:28 pm
Did you look at my article? Technically, there is a way that you can avoid that this person has all those permissions.
Then I sense that there is a political game...
May 13, 2014 at 3:27 pm
Good news! Read this article on my web site. It includes two examples how you can package the permissions to start a job in a stored procedure. Implement that, and...
May 8, 2014 at 1:56 pm
Your prospects are utterly bleak, I'd say.
If I understand this correctly, you only want the Access developer, to access SQL Server through Access and through SSMS.
You can set up a...
May 8, 2014 at 1:32 pm
I'm not sure why Grant and others talk about update statistics, since everything is confined into a single script. There are no old statistics to update.
There is a new cardinality...
May 1, 2014 at 12:39 pm
Can you run this:
EXECUTE AS LOGIN = 'Domain\grouplogin'
go
SELECT u.name, u.type_desc, CASE WHEN u.type = 'G' THEN is_member(u.name) END AS ismeber
FROM sys.server_principals u
JOIN sys.server_role_members rm ON u.principal_id...
April 29, 2014 at 8:49 am
This query
SELECT u.name
FROM sys.server_principals u
JOIN sys.server_role_members rm ON u.principal_id = rm.member_principal_id
JOIN sys.server_principals r ON r.principal_id = rm.role_principal_id
WHERE r.name = 'sysadmin'
Will give you all...
April 29, 2014 at 7:44 am
Jeff Moden (4/21/2014)
April 22, 2014 at 2:45 pm
Viewing 15 posts - 451 through 465 (of 1,219 total)