Viewing 15 posts - 5,941 through 5,955 (of 13,459 total)
this was my first google hit for "Script Login with Permissions to User Databases":
looks like exactly what you want, right?
http://www.sql-server-performance.com/2002/object-permission-scripts/
Lowell
February 13, 2012 at 10:26 am
I think you need to simply drop the users.
something like this would generate the commands to either fix orphans or drop teh users, would this help?
/*--Results:
DROP USER [GMS];
DROP USER [CCFD01\Jack.Campbell];
*/
SELECT...
Lowell
February 13, 2012 at 7:44 am
Rob I'm a developer, so the do-it-yourself options for me are much more palatable.
it's very very easy to do it all yourself you can use CLR.
I've got prototype CLR's...
Lowell
February 13, 2012 at 5:45 am
going back to the questions on the first page...we never got a definitive answer.
did you disable windows firewall and attempt to connect?
what was the results or specific error when you...
Lowell
February 10, 2012 at 2:44 pm
here's the equivalent SELECT so you can see what would get updated...does it look correct?
SELECT * FROM Profiles
INNER JOIN AllJobCategories j
ON j.Uniqueid = Profiles.id
...
Lowell
February 10, 2012 at 11:58 am
= (SELECT must return one value per row;
here's what i think is the equivalent , but since the subquery would return more than one industry id per profile, you don't...
Lowell
February 10, 2012 at 11:44 am
well the aliased table a in your query is sys.database_principals , and that does not have a column named [authentication_type ],
the only dmv i could find with that exact...
Lowell
February 10, 2012 at 9:07 am
ok i ran your command, and i have a trace up and running...it is not stopped for me.
i had to change the path from c:\MyTrace\ to a folder for me...
Lowell
February 10, 2012 at 8:52 am
i think that last command is missing the variable:
exec sp_trace_setstatus TRACEID, 1 --start trace
--should be
exec sp_trace_setstatus @TraceID, 1 --start trace
Lowell
February 9, 2012 at 5:12 pm
ok, i think i see what you mean.
correct me if I'm misunderstanding the question please.
The default behavior is to create a user witht eh same name as a login.
so for...
Lowell
February 9, 2012 at 8:16 am
Lowell (2/8/2012)
if you can provide sample tables and data that truly emulates the situation, we can help further.
the key there was emulates what you are trying to do, not necessarily...
Lowell
February 8, 2012 at 1:28 pm
this is where regular expressions will help out;
can you install a CLR on your server to let you do regular expressions?
converting a string is a two part process, I...
Lowell
February 8, 2012 at 12:24 pm
you probably need to partition by customer number + upc or invoice_number + upc instead...it completely depends on your specific data. based on what i was able to derive,...
Lowell
February 8, 2012 at 11:30 am
you cannot remove the public role, it's built in and required. everyone is part of the public role.
what you can do is never grant any permissions to that role. so...
Lowell
February 8, 2012 at 10:09 am
notice how i provided all the code you might need to test the solution? if you can do the same, by providing either CTE or CREATE TABLE...INSERT INTO statements, you'll...
Lowell
February 8, 2012 at 10:05 am
Viewing 15 posts - 5,941 through 5,955 (of 13,459 total)