Viewing 15 posts - 196 through 210 (of 482 total)
How about a try-catch around the first step. Set a variable indicating success or failure, then do step 2, and then throw that variable?
January 15, 2014 at 12:22 pm
Hi Gaz,
I'm doing this in PowerGUI, BTW.
I guess strictly speaking it's more of a .net / Windows forms question, but I am doing this all in PoSh.
I've replaced a...
January 15, 2014 at 12:16 pm
OK... Does it work for all the users that are members of that group?
If it does, then it's not access to database xxxxx that's the problem.
Does the sproc perhaps try...
January 2, 2014 at 12:49 pm
What happens when you try
setuser 'domain\member of group'
go
use xxxx
go
setuser
go
execute as login = 'domain\member of group';
go
use xxxx
go
revert
go
January 2, 2014 at 6:46 am
Here's some feedback:
I've found that the code below is considerably faster than my previous RBAR-CBAC solution -- although I think that's what's happening in the background of the where clause.
$Rows...
December 30, 2013 at 7:58 am
Thanks again Andy,
I had arrived at the same solution: a VBA function to, er, highlight the rows of interest.
Fortunately this is an ad-hoc type job that only needs to be...
December 30, 2013 at 5:27 am
Thanks Andy.
I had a look at the closed XML thing, seems rather complex for my needs.
Let me get down to specifics: I have a worksheet object, got the range...
December 27, 2013 at 12:00 pm
I'm doing this in a loop: it's taking about .5 seconds/row to access these cells, + another .5 seconds for processing.
$nId = $UserWorksheet.Cells.Item($intRow, 1)
$cE_Description= $UserWorksheet.Cells.Item($intRow, 2)
$cF_Description = $UserWorksheet.Cells.Item($intRow, 3)
$nParent_Id= $UserWorksheet.Cells.Item($intRow,...
December 27, 2013 at 6:53 am
Yup, got it. Was not getting any values for Date because column name had a trailing space.
Thanks Bruce.
October 24, 2013 at 5:47 am
We only have 1-way trust. The SQL Server domain trusts the outside domain.
AD admin says groups from outside domain could not be members of local groups.
We have a working solution...
October 22, 2013 at 10:27 am
Something like this?
foreach ($CurrentlyProcessingDB in $MyListOfDBs)
{
if ($ListOfDbsToIgnore -notcontains $CurrentlyProcessingDB)
{
...
October 17, 2013 at 10:06 am
45 DBs * 16 groups/Domain/DB = 720 logins.
Each login maps to a DB user, which is a member of a db role.
The roles already exist, as do the DB users...
October 15, 2013 at 11:11 am
Hi 360,
I'd originally hoped to use nested AD, but my domain admin tells me "that ain't gonna happen" due to trust issues.
At no point is any of this being done...
October 15, 2013 at 9:16 am
Thanks for the responses.
While the logins are unavoidable, I was trying to avoid creating 700+ corresponding database users (groups, in this case). Lutz's response shows it's possible, but... from BOL...
October 15, 2013 at 5:15 am
You were very close: this needs to be in brackets:
($_.lastWriteTime -lt ((Get-Date).AddHours(-6)))
October 8, 2013 at 6:28 am
Viewing 15 posts - 196 through 210 (of 482 total)